cancel
Showing results for 
Search instead for 
Did you mean: 

Assertion 'For content matching Regex'

Super Contributor

Assertion 'For content matching Regex'

Hello,
I get a date time stamp in my response. I want to make sure that stamp always has 'Z' in the end. so an example of a valid timestamp is
2007-07-16T22:15:24.5128258Z

How do I use the regex assertion to accomplish this. What do I write in the popup text box.

Also in the 'Add Content Xpath' pop up box it says 'specify regulat' spelling mistake should be 'specify regular'

Thanks

Ali
1 REPLY 1
Super Contributor

Re: Assertion 'For content matching Regex'

Hi Ali,

thanks for pointing out the typo..

In the text-field you should specify the regular expression you want to match against.. I'm no regexp expert, but I am guessing it should be something like .*Z ?

After entering, you will come to the standard XPath Contains dialog, where you can always change the regular expression manually..

Hope this helps!

regards,

/Ole
eviware.com
New Here?
Join us and watch the welcome video:
Top Kudoed Authors