elmoi0010 Posted August 31, 2014 Posted August 31, 2014 Hello guys am triying to get specified text from a webpage but.. It dont have, name or id or somethings is just a webpaje like .txt. Look. That's all the source code. and i want to get just the "email_timestamp". or the "email_addr" and dont know how to search and copy just that. I tryed with _IEBodyReadText($oIE) But i dont know what to do. Thanks in advanced<3
jguinch Posted August 31, 2014 Posted August 31, 2014 If I understand, this code could work : ; $sText = _IEBodyReadText($oIE) $sText = '{"email_addr":"acgdpzqi@guerrillamailblock.com","email_timestamp":1409497735,"alias":"qjzji+6wmbwsypujcmc","sid_token":"90b79mphomer90hs2gsvp6ill3"}' $aExtract = StringRegExp($sText, '(?is)"email_addr":"([^"]+)".*?email_timestamp":(\d+)', 1) If IsArray($aExtract) Then ConsoleWrite("email_addr : " & $aExtract[0] & @CRLF & "email_timestamp : " & $aExtract[1]) Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Solution elmoi0010 Posted August 31, 2014 Author Solution Posted August 31, 2014 (edited) If I understand, this code could work : ; $sText = _IEBodyReadText($oIE) $sText = '{"email_addr":"acgdpzqi@guerrillamailblock.com","email_timestamp":1409497735,"alias":"qjzji+6wmbwsypujcmc","sid_token":"90b79mphomer90hs2gsvp6ill3"}' $aExtract = StringRegExp($sText, '(?is)"email_addr":"([^"]+)".*?email_timestamp":(\d+)', 1) If IsArray($aExtract) Then ConsoleWrite("email_addr : " & $aExtract[0] & @CRLF & "email_timestamp : " & $aExtract[1]) That works perfectly bro thanks in advanced. Edited August 31, 2014 by elmoi0010
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now