I'm trying to set up an Xpath that will look to see if the last character of the sellingprice attribute ends with a "2". The sellingprice value is between 4-6 characters.
Here's the Xpath I'm currently working with. I'm unable to use ends-with since it's only compatible with 2.0. I've tried to use substrings and string-length, but it isn't working in any iteration I've tried and I can't find any other working examples.
/node[newused[1] != "New" and sellingprice[1][ends-with(.,"2")]]
How can I mimic ends-with functionality for this on 1.0?