NppToolBucket
NppToolBucket copied to clipboard
Feature Request: escape regular expression
A common workflow for me is:
- highlight a complex line of code from the current document
- open up multiline search and replace, prepopulated with line from step 1
- change Search Mode to regular expression
- manually add backslashes before any
.,\,?,*,+,{,(,[,],),}etc characters - customize regular expression
I would like to eliminate step 4. Would it be possible to add a quick way to escape a regular expression into the tool?
Hmm, interesting idea. I've seen regular expressions that are designed to escape regular expressions so I'm sure it's possible, but I think it can be rather error prone. Given my lack of time to contribute to this project I'm not sure I'll be able to add it, but I'm happy to accept a pull request.