Click here to Skip to main content
15,878,953 members
Articles / General Programming / Regular Expressions
Alternative
Tip/Trick

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 11.2K   2
\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)


Written By
Software Developer DDC OS
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

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.