Forum Discussion
BA_Service_Haus
13 years agoRegular Contributor
Hi Renato,
of course I could try this expression and it definitely would pass.
But this isn't what I whant.
I want to check, if the node-text is equal to "Test*Test"
So the asterisk is used as a part of the string, not as a wildcard.
In the meanwhile I found out, that I have to mask it using two backslashes, like:
Best regards
of course I could try this expression and it definitely would pass.
But this isn't what I whant.
I want to check, if the node-text is equal to "Test*Test"
So the asterisk is used as a part of the string, not as a wildcard.
In the meanwhile I found out, that I have to mask it using two backslashes, like:
def xPath = '//n10:findKundeResponse/n10:kunde/n8:adresse[@xsi:type="n8:Privatadresse" and matches(n8:ort, "^Test\\*Test$")]/n8:ort'
Best regards