google / cel-spec

Common Expression Language -- specification and binary representation
https://cel.dev
Apache License 2.0
2.83k stars 224 forks source link

Does cel support regex syntax? #269

Closed SpecialYang closed 1 year ago

SpecialYang commented 1 year ago

Do we have a example for regex match?

TristonianJones commented 1 year ago

@SpecialYang There's no syntax for regex specifically, but there is the matches member function with examples in the conformance tests of how to use it: https://github.com/google/cel-spec/blob/master/tests/simple/testdata/string.textproto#L110