Multiline everything matches in VBScript and Javascript

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 [sS] (that is, whitespace and not-whitespace).

Leave a Reply

Your email address will not be published. Required fields are marked *


*