Page 1 of 1

Replace nth orrurrence of char

Posted: Fri Feb 01, 2013 4:51 pm
by sqtchman74
I have a text line that I need to fin every 10th orrurrence of a "^" and replace it with a line feed, how do I do that?

Posted: Sat Feb 02, 2013 12:04 am
by ak47wong
Enable POSIX regular expression syntax in Configure > Preferences > Editor. Then perform a Replace operation with the following parameters:

Find what: (([^^]*\^){9}[^^]*)\^
Replace with: \1\n

Select Regular expression and click Replace All.