Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex question
#1
Hi there,

I have a lot of text, i want to replace everything between "once" and "twice" with the word 'quote' the text between once and twice has several lines (about 5) ... can this be done with a regex and replacerx?

I cannot figure it out myself so far..

Any help is welcome

Greetings

Sonic
#2
Macro Macro524
Code:
Copy      Help
str s=
;...
;once
;...
;...
;twice
;...

str repl="quote"

if(0>s.replacerx("(?ms)^once[].+?^twice$" F"once[]{repl}[]twice" 4)) out "not found"; ret
out s


Forum Jump:


Users browsing this thread: 1 Guest(s)