Skip to content

Conversation

maskri17
Copy link
Collaborator

@maskri17 maskri17 commented Jun 6, 2025

Commit Messages

Adding Regex Extensions to cel-go

Adding regex functions such as replace, capture, catureAll, and captureAllNamed in accordance with [Regex Design Doc](https://docs.google.com/document/d/1j5VYoAPsKSXcC8xtP-haskOcPFiUT9MwhD-dyUTFs2Y/edit?tab=t.0). 

@maskri17 maskri17 marked this pull request as draft June 10, 2025 18:14
@jnthntatum
Copy link
Collaborator

/gcbrun

@maskri17 maskri17 marked this pull request as ready for review June 10, 2025 23:26
@jnthntatum
Copy link
Collaborator

/gcbrun

@jnthntatum
Copy link
Collaborator

/gcbrun

@maskri17
Copy link
Collaborator Author

/gcbrun

@jnthntatum
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@jnthntatum jnthntatum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's ok to defer until the updates for the java version are stable and consistent, but you will also want to update the /ext/README.md with documentation about the extension

Copy link
Collaborator

@jnthntatum jnthntatum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM last round of documentation / style suggestions

@maskri17 maskri17 requested a review from jnthntatum July 1, 2025 18:54
@jnthntatum jnthntatum merged commit a4b169a into google:master Jul 1, 2025
2 checks passed
renevo pushed a commit to Blizzard/cel-go that referenced this pull request Sep 12, 2025
Adds the Regex extension library for additional regular expression operations.

Functions:

`regex.replace(source : string, pattern_re : string, replace : string) -> string` -- replace all
`regex.replace(source : string, pattern_re : string, replace : string, int : limit) -> string` -- replace all (capped)
`regex.extract(source : string, pattern_re : string) -> optional(string)` -- extract pattern (first)
`regex.extractAll(source : string, pattern_re : string) -> list(string)` -- extract pattern (all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants