Click here to Skip to main content
14,979,837 members
Articles / General Programming / Regular Expressions
Alternative
Tip/Trick
Posted 7 Feb 2012

Tagged as

Stats

9.5K views

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
8 Feb 2012CPOL
\S does not / did not work on all versions of RegExp on Microsoft JScript / VBScript (sorry to be vague - I just recall having to avoid it because it was flakey). Instead you could try Start([.|\n]*)End (match everything except newline and newline)Update: Checked some old code: I could...
\S does not / did not work on all versions of RegExp on Microsoft JScript / VBScript (sorry to be vague - I just recall having to avoid it because it was flakey).

Instead you could try Start([.|\n]*)End (match everything except newline and newline)

Update: Checked some old code: I could not get \S to work in VBScript (don't comment on this) in a module originally designed for MS-IE4.0.

License

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

Share

About the Author

jsc42
Software Developer DDC OS
United Kingdom United Kingdom
No Biography provided

Comments and Discussions

 
GeneralMy trusty "JavaScript - The Definitive Guide" (1998 - 3rd Ed... Pin
jsc427-Feb-12 4:04
professionaljsc427-Feb-12 4:04 
General[.\n] or [.\r\n]? Pin
Chris Maunder7-Feb-12 2:41
cofounderChris Maunder7-Feb-12 2:41 

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

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