My end goal is to get the last part of the href
i.e. company name or brand name.
Using the below examples, how can I grab the href
that contains the string
'brand' for example, or 'business'?
<a class="nocolorchange" href="/guides/brand/6429-ArmHammer">
<a class="nocolorchange" href="/guides/business/5928-ChurchDwightCoInc">
I have tried:
//a[matches(@href, 'business')] # or brand
with no luck. Thanks.