Jump to content
UBot Underground

Any One Good At Regex? Need Some Help.


Recommended Posts

Hi, 

 

I can pull the data I need from html like this,  

<input type="hidden" value="6LfnuAYAAAAAAJ_9S1HZ8qxfs145BrjYjzec1yjC" name="publickey">

 but how do you get around the attributes switching around on the page?

 

Example:

<input type="hidden" name="publickey" value="6LfnuAYAAAAAAJ_9S1HZ8qxfs145BrjYjzec1yjC">

Cheers 

 

Carl 

Link to post
Share on other sites

if you need to grab the value, you could use this

(?<=value=").*?(?=">)

Or you could always find the static "character" element to be scrape, for example:

(<input).*?(">)
Edited by north_star
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...