Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / programming / regular-expression

Checking for any character using regular expressions in multiline text

4.67/5 (3 votes)
30 Jan 2012CPOL 14.5K  
For .NET and Perl Regex: Instead of changing the Regex pattern, use the RegexOptions.Singleline (.NET) or s modifier (Perl). This enables . to match newline.

For .NET and Perl Regex: Instead of changing the Regex pattern, use the RegexOptions.Singleline (.NET) or "s" modifier (Perl). This enables "." to match newline.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)