top of page

Notepad++ : Removing a field between characters with Regex

  • Writer: Krishnaraj Rajagopal
    Krishnaraj Rajagopal
  • Feb 13, 2018
  • 1 min read

Use the following search string in the find and replace window within Notepad++ to remove any string between specific characters. Ensure to check Regex box when performing this find and replace.

(?<=start-text)(.*)(?=end-text)

start-text - Starting text of the field

end-text - Ending text of the field

The following example will remove text between UUID and immediate brackets (}).

(?<=UUID)(.*)(?=\})

Note: The \ before the brackets is an escape character to differentiate text characters from Regex characters.

Comments


©2017 by Krishna's Tech Notes. Proudly created with Wix.com

bottom of page