Find and delete all text after //
I need to clean a large .txt file. See the example below:
I want to delete all text and numbers after the “//” in a given line so it looks like this:
You probably want to eliminate spaces before the
I’d try this:
- Bring up the Replace window (ctrl+h).
- Find what box:
- Replace with box:
- Search mode: Regular expression
- Wrap around: ticked
- Press the Replace All button.
Learn more about this kind of searching/replacing here: https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation
Try it 😉
It works; apologies for the mistake.