Match Regex across newlines?

Posted by Jörg Battermann on Stack Overflow See other posts from Stack Overflow or by Jörg Battermann
Published on 2010-05-06T15:26:47Z Indexed on 2010/05/06 15:28 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

I have a regex ( "(<lof<).*?(>>)" ) that works and matches perfectly on single line input. However, if the input contains newlines between the two () parts it does not match at all. What's the best way to ignore any newlines at all in that case?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about regex