<body >

Multiline everything matches in VBScript and Javascript

Saturday, October 20, 2007

Apparently VBScript uses the same syntax as javascript for regular expressions, so they both suffer from the ". means everything .. except that it doesn't" bug. You'd think that [.\s] would do the trick, but it doesn't. The best workaround I've seen is [\s\S] (that is, whitespace and not-whitespace).

Labels:

Read the article.

Permalink

 
   



Blogger Template by Gecko & Fly, modified by yours truly.