Update expression_language.md (#1231)

add clarification for regex operator
This commit is contained in:
shobu13 2024-11-20 09:42:05 +01:00 committed by GitHub
parent 50ec181fc7
commit 86dc4a4636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,8 @@ Supported currently are the following features:
- comparisons (`==`, `!=`, `>`, `<`, `<=`, `>=`) - comparisons (`==`, `!=`, `>`, `<`, `<=`, `>=`)
- boolean operations (`||`, `&&`, `!`) - boolean operations (`||`, `&&`, `!`)
- regex match operator (`=~`) - regex match operator (`=~`)
- Rust regex style, left hand is regex, right hand is string
- ex: workspace.name =~ '^special:.+$'
- elvis operator (`?:`) - elvis operator (`?:`)
- if the left side is `""` or a JSON `null`, then returns the right side, - if the left side is `""` or a JSON `null`, then returns the right side,
otherwise evaluates to the left side. otherwise evaluates to the left side.