I have html code:
<a href="javascript:void(0);" id="seller0-showAllImage" onclick="showPlusBox(0,'/products/plusbox?cid=9286328115358229395&authorid=2860562')" class="fl">
in result I need to have only string:
/products/plusbox?cid=9286328115358229395&authorid=2860562
How can I match it in RegEx from the html code?
Thanks!
Match:
Reference
$1is then the string you’re looking for.Of course, this depends pretty much on the exact strings you want to match; where it’s embedded, etc. With a single example there isn’t much to extrapolate. Honestly, the Regex
would also match what you’re looking for, for example.