Cyborg5000 Posted March 15, 2023 Posted March 15, 2023 Iam trying to capture an empty space/ string between two texts, but also want to add text to it. Reason for Impact: NA Recovery Action: NA Start Time (CST): 07-Mar-2023 02:02 AM End Time (CST): NAVendor Ticket: Notification: So between Vendor Ticket: and Notification if empty add NA
TheXman Posted March 15, 2023 Posted March 15, 2023 (edited) <snip> Edited March 18, 2023 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
ioa747 Posted March 15, 2023 Posted March 15, 2023 (edited) Local $Str = ClipGet() ConsoleWrite($str & @CRLF) $Str = StringReplace($Str, "Vendor Ticket:" & @CRLF & "Notification:", "Vendor Ticket:" & @CRLF & "NA" & @CRLF & "Notification:") ConsoleWrite($str & @CRLF) #cs Reason for Impact: NA Recovery Action: NA Start Time (CST): 07-Mar-2023 02:02 AM End Time (CST): NA Vendor Ticket: Notification: #CE Edited March 15, 2023 by ioa747 I know that I know nothing
Cyborg5000 Posted March 15, 2023 Author Posted March 15, 2023 (edited) Thanks, but text may be available between Vendor Ticket: and Notification in further instances. Edited March 15, 2023 by Cyborg5000
ioa747 Posted March 15, 2023 Posted March 15, 2023 if it has text, it won't change it I know that I know nothing
Cyborg5000 Posted March 15, 2023 Author Posted March 15, 2023 a small help? how can i use it in a loop of 1000 text files?
ioa747 Posted March 15, 2023 Posted March 15, 2023 (edited) what is the source of the text? if it is a single text it will change all , no matter how much it is when it finds Vendor Ticket: Notification:it will change it with Vendor Ticket: NA Notification: Edited March 15, 2023 by ioa747 I know that I know nothing
Cyborg5000 Posted March 15, 2023 Author Posted March 15, 2023 10 minutes ago, ioa747 said: what is the source of the text? text files
Cyborg5000 Posted March 15, 2023 Author Posted March 15, 2023 @ioa747 Thanks a lot, was able to set it to a loop on the text file.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now