Jump to content
UBot Underground

Grabbing a code from the middle of a paragraph


Recommended Posts

Hi,

 

Im trying to grab the code out of this bit of text but i cant get it working, ive tried using the replace command to replace the text before and after with nothing but the linebreaks seem to mess it up, any ideas ?

 

-----------------------------------------------------

 

Hi Kelly,

 

You have recently been asked to verify your Facebook account with a

security code.

 

Your Facebook security code is 479465. To verify your account, please

paste this code on the page that requested it.

 

If you have not been asked to provide a Facebook security code, then

there may have been an unauthorised attempt to access your account. As a

security precaution, please change your Facebook account password at

https://register.facebook.com/editaccount.php .

 

Thanks,

The Facebook Team

Link to post
Share on other sites

Hi,

 

If all emails are in the same format, then have you tried (for example) just page scraping:

 

"Your Facebook security code is 479465. To verify your account, please

paste this code on the page that requested it."

 

So that, the left bit contains "Your Facebook security code is " and the right bit contains: ". To verify your account"

 

This should get the code you require.

Link to post
Share on other sites

thanks mate thats what i thought but its giving me a blank result for some reason. I must be doing something stupid.

 

When im doing a page scrape i dont have to choose by attribute before do i ?

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...