You can create a regexp throug the RegExp constructor too. It's defined
between quotes then.


var UpdprojStart = "     "; //five spaces.
var myPattern = new RegExp("\\s+","ig");
UpdprojStart = UpdprojStart.replace(myPattern, "-");

-----Original Message-----
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: dinsdag 7 oktober 2003 12:31
To: CF-Talk
Subject: RE: _javascript_ regex problem.

Pascal,

Thanks, it's weird though, I copied a regex from the _javascript_
reference
and just replaced it with what came out of the vis regex editor.  The
reference had the quotes!

Thanks again
Steve



[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to