Solved
There is an example in the documentation for the same
In your case, use xpath assertion with
XPath expression as
matches(//*:RandomNumber, '\d{3}')
And Exprected Result as
true
NOTE: ignore namespace from the image below and use your name spaces by clicking on declare.