PureBytes Links
Trading Reference Links
|
Hello,
Does anyone know how to test for an regExp where the expression is
stored in an variables in jscript. I am looking for a similar way as
Perl regExp operation.
example:
in Perl.
if ( $line ~= /$date/ ) {....
where $date is a variable that contains regExp that is built on-the-
fly.
in Jscript, the only way to build regExp is:
re = /literal Expression/i; // I'd like this to be dynamically built.
then it can be used as follow:
if ( s.match ( re )) {....
thanks in advance.
|