Regex Help Please
-
Hi everyone,
I have a large file with many of what is highlighted that I would like to remove. Is there a way to do it with Notepad++ and Regex? Thank you in advance.
-
In the future, please read this FAQ and use literal blocks of text wrapped in ``` to show your text rather than pasting images.
It is not clear what you want to remove at the end of the line, but if you want to remove everything before
CUSTOMER REFERENCE NUMBER:
on lines with that text, you can useSearch->Replace...
to open the find/replace form, checkWrap Around
, setSearch Mode
toRegular expressions
, set Find what: to(?-si).*(?=CUSTOMER REFERENCE NUMBER:)
, leave Replace With: empty, and hit the Replace All button.