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

i want to find capture the text between "merge" and "replace". I tried different combos but I can't get it to work.

Here's my text

DO NOT MERGE THE FILES do this to each one individually
REPLACE

Here's are the regex matching patterns that I've tried

;merge.+?replace

;merge.*?replace

;merge(.*)replace

Here's the code I tried using

Code:
Copy      Help
if(0=findrx(s pattern 0 1|4|8 list_of_1_section)) end "not found"

i made used the flags: insensitive, find all, and multi-line but I keep getting "no match found"

Please help.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)