<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00006uOHNLCA4Okta Classic EngineUniversal DirectoryAnswered2022-07-22T16:23:34.000Z2021-04-02T18:43:09.000Z2021-04-02T18:54:12.000Z
How does the "matches operator" work?

How does the `matches` operator work?

 

The following document says we can use, "The `matches` operator to evaluate a String against a regular expression". This is exactly what I need, to compare a string against a regex. But what the heck is a "matches operator" ? I tried several things, without success.

 

user.department matches "Engineering"

user.department matches "/Engineering/"

user.department=~"Engineering"

 

https://developer.okta.com/docs/reference/okta-expression-language/*conditional-expressions

 

Thanks,

Jeffrey


This question is closed.
Loading
How does the "matches operator" work?