Need help with RegEx string..how can I get this element?

simpleonline12

New member
Sep 29, 2009
191
3
0
I am able to get ALL id's on the page but I wanted to be able to get this particular string of html

Code:
<input autocomplete="off" type="password" tabindex="3" size="25" name="password" id="password" value="" onfocus="_helpOn('help__password')"
Here is my current Regex: id=.*"

This get ALL the freaking Id's on the page.

I've tried using regexr but it's not giving me any results. Any ideas on how I can get this to only show me:


id="password"

Thanks
 


dchuk is right.

That said, how dirty can you be? Do you *know* the format will always be like that?

m/<input autocomplete="off" type="password" tabindex="3" size="25" name="password" (id=".*")/

print $1;

edit: do it the right way in the end. this kind of hack would at least get you up and running (if you've got that luxury.)