Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

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

  • omatzura's avatar
    omatzura
    Super Contributor
    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