Replies: 1 comment 5 replies
-
CUE uses Go's regexp library, which itself uses the widely adopted RE2 syntax https://pkg.go.dev/regexp | https://github.com/cue-lang/cue/blob/master/pkg/regexp/regexp.go
Another consideration would be the "does not match" operator |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to suggest to adopt javascript's syntax for regular expressions
=~ "[a-z0-9]*" => /[a-z0-9]*/
Since json is a subset of javascript and cue is a superset of json I thing that it would make sense to reuse a familiar syntax instead of introducing a new one.
Best
Beta Was this translation helpful? Give feedback.
All reactions