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 , 8 Feb 2012
Rate this:
Please Sign up or sign in to vote.
\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.


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

About the Author


United Kingdom United Kingdom
No Biography provided

Comments and Discussions

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

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
Web04 | 2.8.140415.2 | Last Updated 8 Feb 2012
Article Copyright 2012 by jsc42
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid