Can regex match be based on two lines of text?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-06-02T22:57:48Z Indexed on 2010/06/02 23:14 UTC
Read the original article Hit count: 212

Filed under:

Let's say I have

def
abc
xyz
abc

And I want to match

xyz
abc

as a whole

Is this possible using the most generic RegEx possible? That is not the perl RegEx or .Net Regex which have multi line flags.

I guess it would be BNF to match this.

© Stack Overflow or respective owner

Related posts about regex