Click here to Skip to main content
11,410,405 members (41,908 online)
Click here to Skip to main content

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

, 30 Jan 2012 CPOL
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.
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the Programming Tips Table of Contents to view the list of available articles in this section.
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.5 | Last Updated 30 Jan 2012
Article Copyright 2012 by Matt T Heffron
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid