Forum Discussion

Rhaligar's avatar
12 years ago

Question regards XPath and Property Transfer

If my XPath command ends with /@href and I get the following type of result:

/Admin/Users/1431-1223-I21K

Then is it somehow poosible to parse 14 last characters from this XPath result?'
Can I add somehow regex to this XPath command?

1 Reply

  • GiscardN's avatar
    GiscardN
    Frequent Contributor
    Hi,

    You can use the substring-after String function with your XPath.
    Ex: substring-after(//yourXPathExpression, "/Admin/Users/")
    That will return 1431-1223-I21K

    Regards,

    Giscard
    SmartBear Support