How to Parse Response source's Html Code?? (I tried all nothing working, Help me PLZ!!)
-
I want to parse the response source's html code,
" data-dismissible="1" data-dismiss-interval="5000"> <p><strong>Error</strong>: xxxxxxxxx is incorrect.</p> </div></div>
Need to parse "xxxxxxxxx is incorrect." but tried all ls and rs, regex, and json also but unable to parse plzz help!!
-
It should be doable with Regex, you must have done something wrong.
You can set the length of the Regex parse using{7}
7 is just an example..
You can you can capture every possible character until it gets to where you want it to stop
Try
Error</strong>:([^"]*)is
-
@Fairy said in How to Parse Response source's Html Code?? (I tried all nothing working, Help me PLZ!!):
{7}
its not parsing i tried with recursive also and output too but nothing, I want to parse between </strong>: xxxxxxxx</p>. but its not parsing help me!!
-
Try this
data-dismissible="1" data-dismiss-interval="5000">\s*<p><strong>Error</strong>: ([^<]*)</p>
See if the interval is changing. If it does, I'll update the code.
In the output just put[1]
-
Still Unable to parse with this also.
yeah the interval is not changing!! Also there are spaces in that code plz check again bro !! help!!
-
You should be using css selector. Copy it from inspect element in chrome
-
@Ruri how any steps coz newbie
-
@Ruri Copied the selector but what i need to put in attribute??
-
innerHTML
-
check it and I'm still getting error
-
@Gautham just DM me, I'll help.