I am trying to use RegEx to find a pattern in a pattern. In particular, what I want to do is grab the URL into the link and search inside this for everything that happens after the last = sign and grab it.
So this line
<a href="http://my.domain.com/?s_cid=EM&s_ev9=CMC21892&s_ev10=EM_CMC21892_LC_stuff" style="color: #365EBF:">stuff</a>
I would first find
href="http://my.domain.com/?s_cid=EM&s_ev9=CMC21892&s_ev10=EM_CMC21892_LC_stuff"
Using this RegEx: href="(https?[^"]*)"
From there, I was able to parse the actual line (when viewing the captured group). I am looking EM_CMC21892_LC_stuffas follows:=[^"=]*$
I have no success, though, when I try to combine these two to execute them in one RegEx.
Any thoughts?
source
share