regular expression from variable
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

regular expression from variable

From: Martin John Brindle <martinbrindle@ntlworld.com>
Date: Mon Aug 22 2005 - 13:01:15 CEST

I need to build a regular expression where the expression contents are
variable.

for example I have a string that i need to search for, but the string can
change. If i have a variable called string I need to look at the contents of
string otherwise

/string/

obviously doesn't work!

Suggestions appreciated.

Martin
Received on Mon Oct 24 02:14:17 2005