JAvila's avatar
JAvila
Occasional Contributor
2 years ago
Status:
New Idea

Smart Assertion Conditions NOT Matches Regex

List of Smart Assertion Conditions

0.  <, > , >= , <=

1. Equals                AND   Not Equal

3. Equals (one of)  AND   Not Equal (one of)

5. Exists                 AND       Does NOT Exist

7. Empty                AND   NOT Empty

9. Contains            AND  does NOT Contain

11.  Matches (regex)  AND.... AND..... (!!)  And...  and..... and....!!!     Uh..... what happened to NOT MATCHES (regex)  ?!?!

3 Comments

  • KarelHusa's avatar
    KarelHusa
    Champion Level 3

    JAvila ,

    this is a good point.

     

    In the time being we can use a negative regexp, e.g.:

     

    (?!UnwantedString).*

     

    Best regards,

    Karel

     

  • JAvila's avatar
    JAvila
    Occasional Contributor

    Thank you KarelHusa - I did not know about this regex function - I would remove this featuer request now!

    Thank you

  • KarelHusa's avatar
    KarelHusa
    Champion Level 3

    JAvila , I think that using Does Not Match (regex) would be much more intuitive for users than negative regex. So your feature request still makes sense to me.