Notepad++ : Removing a field between characters with Regex
- 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.
コメント