Forum Discussion

uni's avatar
uni
Icon for Altostratus rankAltostratus
Mar 20, 2006

Difference between matches, equals and matches_regex

How does the matches operator differ from the equals operator, and where is this documented?

1 Reply

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Well, as far as documentation, the different operators are documented here: Click here in the Wiki.

     

     

    matches_regex compares a string against a regular expression, rather than just against another string, which clearly sets it apart from the others.

     

     

    matches tries to match one string to another, but isn't necessarily a character by character comparison, like equals is, which is pretty self explanitory.

     

     

    HTH,

     

    -Colin