Yes, you can write a XPath expression using 3 functions start-with()
, string-length()
and substring()
in combination. The following post shows an example:
The following article describes how to live without regular expression in XPath 1.0.
Is the URL of your application-under-test public on the Internet? Could you share it to us? If the URL is available to us, I could write a working sample code. Without the URL shared, I am afraid, it is difficult to discuss hands-on.