Search the Community
Showing results for tags 'text replace'.
-
So basically need to pull text from a .txt file or .sql and use that text to replace something within a different file. First File: jumps Or: Text1 = jumps Text2 = fence Second File: My Dog XXXXX over the YYYYY. After Script: My Dog jumps over the fence I have found a good start, I'm basic programmer at best, I have some experience but this gets out of my wheel house. Any help is appreciated.
- 13 replies
-
Hi guys! I have text file with lines: Good text - something 100 $ unnecessary text Good text - something Good text - something Good text - something 080 $ unnecessary text I want remove all line starting with: 3 digits + space + $ sign + any text. I try: StringRegExpReplace($sTextToReplace, '([0-9]{3})[:space:]\x{24}', "") StringRegExpReplace($sTextToReplace, '(?-i[0-9]{3}[:space:]\x{24}(?s)', "") Work great with: StringRegExpReplace($sTextToReplace,"\d{3}\s\$.+", "") Question Solved.