Page 1 of 1

Search and replace using "or"

Posted: Tue May 14, 2013 7:08 pm
by C0ppert0p
Hi, this has most likely been asked, but I can't phrase the right query to find an answer:
I want to replace, SEND or RECEIVE or ... with \t\t\t\t\t\1
ie insert five tabs in front of any occurrence of multiple patterns

Posted: Tue May 14, 2013 7:23 pm
by ben_josephs
With TextPad 7:
Find what: SEND|RECEIVE|whatever
Replace with: \t\t\t\t\t$&

[X] Regular expression

Posted: Tue May 14, 2013 9:08 pm
by C0ppert0p
Coolio!
I was playing with:
(RESTORE|SAVE|whatever)(.*$)
/t/t/t/t/t/t/1/2)

Your's is more elegant.