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
Post a Comment