javascript - Why isnt this regex picking up my pattern? (works on flash) -



javascript - Why isnt this regex picking up my pattern? (works on flash) -

here illustration http://jsfiddle.net/mwdcv/1/

using http://gskinner.com/regexr/ want in javascript not

pattern

pass(word)?\=\s*(\<[^>]+\>)*\s*([^<]+) aka var myre = new regexp('pass(word)?\=\s*(\<[^>]+\>)*\s*([^<]+)', 'gim');

text

<br /> run password= <br /> test <br />

you utilize regexp constructor takes string, backslashes string escapes. utilize regexp literal instead, in other answer. :)

javascript regex

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -