Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using the RE2 regex library #439

Open
rafapcarvalho opened this issue Mar 1, 2024 · 0 comments
Open

Consider using the RE2 regex library #439

rafapcarvalho opened this issue Mar 1, 2024 · 0 comments

Comments

@rafapcarvalho
Copy link

I'm working on a project where we plan to replace our custom algorithm in some scenarios with a rule engine, and among a few options, I suggested using this one.
In the first Proof of Concept (PoC), I needed to make a modification to achieve the same result as in Java aplication, and that involved using the RE2 regex, where I had to switch the default library to one that can handle lookaheads and lookbehinds.

However, I wouldn't like to continue the project with an in-house fork within the company.

Would it be possible to consider adding a default function that utilizes the RE2 regex?
This way, we could maintain the current regex and have a separate new function that supports RE2.

The library I used and worked well is: "github.com/dlclark/regexp2". If you know of another one with more frequent updates, that would be good to explore.

Example expression not supported by the Go standard library: ^00(?!56)[1-9][0-9]{7,}

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

No branches or pull requests

1 participant