Quote:
Originally Posted by scubaddictions
Yeah, I know that there are other text editors that do Regex, and I already have Notepad++. The problem is that the syntax of a Regex in one text editor doesn't work in Notepad++, or any of the other text editors I've tried. I'm almost certain that this particular Find/Replace function will work in Notepad++ if I can just get the syntax correct. Any help on that front would be appreciated.
|
Hi Ryan,
If you want a Notepad++ equivalent to your UltraEdit solution, I believe the following will work. It's a multi-pass operation.
First, choose a short text string which doesn't occur elsewhere in your text file. I'm using
~~~ in my example.
- Regex mode, with Match case checked
Code:
Find: ([a-z])$
Replace: \1~~~
- Extended mode
Code:
Find: ~~~\r\n
Replace: singlespace
- Regex mode, with Match case checked
Code:
Find: ^([a-z])
Replace: ~~~\1
- Extended mode
Code:
Find: \r\n~~~
Replace: singlespace
I believe Notepad++ also has a better macro system these days, so perhaps the above 4 commands can be wrapped up as a single macro. I haven't tried this, though.
I hope this helps you save your money