Forum Discussion
tester213243
New Contributor
Hi Rao,
Thanks for the quick reply, appreciate your time.
But how would that work in my example if i want to use the regular expressions?
For example, apparently a dot should match any character or \d should match any digit. But if i do the following it doesn't work:
Response:
<ns1:RandomNumber>234</ns1:RandomNumber>
Contain Assertion:
<ns1:RandomNumber>...</ns1:RandomNumber>
or <ns1:RandomNumber>\d\d\d</ns1:RandomNumber>
nmrao
5 years agoChampion Level 3
Instead of contains, use XPath assertion and provide the node, then use regular expression. If you are expecting 3 digits, try like
\d{3}
Related Content
- 9 years ago
- 8 years ago
- 5 years ago