Slashing back at RegExp

Date : Tue, 25 Oct 2005 17:08:08 +0000
To : xsi(at)Softimage.COM
From : "brad" <brad(at)cg-soup.com>
Subject : Slashing back at RegExp
In jscript, the following raises an error:

    re = new RegExp("\\");

And so does this:

    var str = "C:\\";
    re = new RegExp(str);


I have a workaround that gets the job done, but I was wondering if anyone has figured out a way to instantiate the RegExp object for backslashes.


Cheers!
-Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.