Checking for "any character" using regular expressions in multiline text






4.67/5 (3 votes)
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.