Regular Expressions 101

multiple in between regex

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
(?<=START)(?s)(.*?)(?=Closing)
/
g

Description

this helps to extract the start and end tag but even if in between the start appears again.. it just captures the first start and the next occurence of end tag.

only thing missing is i want to include the end of the line of the end tag

Submitted by Anonymous