Question

Is there any text editor that supports multiple regular expression find and replace queries? I am already using Dreamweaver and tried some tips to run multiple find and replace queries, but it didn't succeed for regular expression. If you know a way to run multiple find and replace queries at a time for regular expression, it would be great. If you know a good software that is compatible with Dreamweaver regex, also please mention! I mean by "multiple queries" "multiple words" with "multiple replaces" not importantly "multiple files"!

Was it helpful?

Solution

Yes!

Here is how you do it in EditPadPro.

  1. Hit Ctrl + Sh + F to open the Search / Replace panel
  2. Type your Search and Replace terms
  3. At the top right of the search panel, click the pull-down on the Favorite searches menu. Add your search, give it a nickname.
  4. Repeat step 3 until you have all the searches you want.
  5. Top menu: Macros, Record Macro, give it a name.
  6. Click the Favorite searches pulldown, select the first pattern you want to execute
  7. Hit Replace All.
  8. Repeat 6 and 7 until you have all the replacement regexes you want for the sequence.
  9. Macros, Stop recording.
  10. Whenever you want to do your sequence of replacements, pull it by name under the Macros menu.

You can get an EPP trial here. I use it because of its potent regex flavor (it's the same developer as RegexBuddy).

OTHER TIPS

TextDistil is a utility intended to let you set up pipelines of regular expressions (similar to as described above for EPP) allowing you to replace text, remove lines or perform other manipulations such as timestamp adjustment. Full disclosure - I'm the author. :-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top