How do I match any character across multiple lines in a regular expression?

Posted by andyuk on Stack Overflow See other posts from Stack Overflow or by andyuk
Published on 2008-10-01T18:48:22Z Indexed on 2010/04/13 0:53 UTC
Read the original article Hit count: 276

Filed under:

For example, this regex

(.*)<FooBar>

will match:

abcde<FooBar>

But how do I get it to match across multiple lines?

abcde
fghij<FooBar>

© Stack Overflow or respective owner

Related posts about regex