Jump to content
UBot Underground

Recommended Posts

Hello @ everyone,

 

i need  help by scraping this code in html.

<span data-pass="7">3 + 4 = </span>

 

 

how can i let directly type the result into the field?

because i cant touch 3 + 4 separatly i think its better to get directly the result?

 

thanx for help.

Edited by mehcul
Link to post
Share on other sites

load html("<span data-pass=\"7\">3 + 4 = </span>")
set(#Debug,$scrape attribute(<data-pass=7>,"innertext"),"Global")
set(#Debug,$replace regular expression(#Debug,"(\\s|\\=)",""),"Global")
set(#Mark,$find regular expression(#Debug,"[^\\d\\=\\s]"),"Global")
set(#Degi1,$find regular expression(#Debug,"\\d+(?=(\\+|\\-|x|\\*|\\/))"),"Global")
set(#Degi2,$find regular expression(#Debug,"(?<=\\d+(\\+|\\-|x|\\*|\\/))\\d+"),"Global")
if($comparison(#Mark,"=","+")) {
    then {
        alert($add(#Degi1,#Degi2))
    }
    else {
    }
}
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...