I'm looking for a way to search for a specific string e.g. '=UUID:' and delete it and all following characters per line. I would prefer a way/macro/addon for notepad++. But all other tools or scripts are welcome :)



Note that the numbers are always different per line so you couldn't do a search 'n replace with them.

Should look like this after


Search mode regular expression, Find


Replace with nothing.

| improve this answer | |
  • 2
    The point between both expressions did the trick. Thank you very much. – nixda Jan 15 '11 at 10:01
  • @nixdagibts that's not a "point between both expressions". It searches for =UUID:, followed by any character (.) any number of times (*), effectively "any sequence of characters", ending at the line break. – Daniel Beck Jan 15 '11 at 11:26
  • 3
    @nixdagibts you could, in the future, try =UUID:[0-9A-F]{32} to prevent false positives (i.e. removing something you'd want to keep) – Daniel Beck Jan 15 '11 at 13:15

It's easy. Your question:


My answer:





= character, represent the character you want to remove
.* characters, represent all the characters after that

That's it.

| improve this answer | |
  • Basically the same as Daniel's answer. He's suggest searching for =UUID: and delete the rest of the line with .*. You minimized it by only searching for the first character =. Additionally there's no need to use a capture group [] – nixda Apr 10 '14 at 6:36

Using find and replace:

  1. Hit CTRL-H to open the Replace dialogue box
  2. enter =UUID:.* into Find what
  3. leave Replace with empty
  4. Select Regular expression and .matches newline
  5. Click on Replace
| improve this answer | |
  • 1
    You are replicating another answer – yass Apr 24 '17 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.