wojciech Posted June 13, 2014 Share Posted June 13, 2014 (edited) 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. Edited June 13, 2014 by wojciech Link to comment Share on other sites More sharing options...
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