1

I need a single regex to replace multiple words: 111, 222, 333, in text like this with 444, 555, 666 (case insensitive):

randomtext111randomtext
randomtext222
randomtext
333randomtext
randomtext

To replace with words 444, 555, 666 to have this result:

randomtext444randomtext
randomtext555
randomtext
666randomtext
randomtext

I managed to replace when every word is in single line, with this:

(111)
(222)
(333)

replace with

444
555
666

but it doesnt work in above example.

(I use powergrep)

Jim8645
  • 181
  • 3
  • 15

0 Answers0