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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -