RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Multi-Line Start | Middle | End construct
Expression
^START(?=(?:.(?!END|START))*MIDDLE).*?END[^\n]+
Description
A regex that hits on a multi-line sequence that starts with a START phrase on a line, and ends with an END phrase on a different line, which contains a MIDDLE phrase on a line between the START and END lines. Needs Multi-Line and Single-Line options enabled in PCRE.
Matches
http://gyazo.com/ffa94f5e0cac61a72f0264fceace4a1f.png
Non-Matches
http://gyazo.com/ffa94f5e0cac61a72f0264fceace4a1f.png
Author Rating: The rating for this expression. Tod Wulff
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials