Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

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

By , 30 Jan 2012
Rate this:
Please Sign up or sign in to vote.

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 article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Matt T Heffron
Software Developer (Senior)
United States United States
No Biography provided

Comments and Discussions

General...which is a little annoying when you're trying to switch b... PinadminChris Maunder30-Jan-12 14:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 30 Jan 2012
Article Copyright 2012 by Matt T Heffron
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid