gohs
GoLang Binding of HyperScan https://www.hyperscan.io/ (by flier)
regexp2
A full-featured regex engine in pure Go based on the .NET engine (by dlclark)
gohs | regexp2 | |
---|---|---|
1 | 4 | |
268 | 933 | |
- | - | |
4.4 | 2.9 | |
11 months ago | 3 months ago | |
Go | Go | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gohs
Posts with mentions or reviews of gohs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-26.
-
Best regexp alternative for Go. Benchmarks. Plots.
gohs (1.2.2 + hs5.4.1) - regex engine designed for high performance. It is implemented as a library that provides a simple C-API. It also requires compilation and linking of third-party dependencies;
regexp2
Posts with mentions or reviews of regexp2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-26.
-
Best regexp alternative for Go. Benchmarks. Plots.
regexp2 (1.10.0) - a feature-rich regexp engine for Go. It does not have runtime guarantees like the built-in regexp package, but is compatible with Perl5 and .NET;
-
Regex RE2 doesn't support specific Turkish characters.
https://github.com/dlclark/regexp2 I am going to use .NET engine until I find a workaround for stdlib :(
-
A CGo-free port of the PCRE2 regular expression library
It's also very useful if you're writing an interpreter which intends to be compatible with something that already needs PCRE support. For example, goja (a JS interpreter) uses regexp2 to support JS's regexp syntax, since JS is not limited to re2.
-
Converting ECMA script regex to golang
Compare https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet with https://github.com/dlclark/regexp2 - maybe github.com/dlclark/regexp2 is (almost) what you need.
What are some alternatives?
When comparing gohs and regexp2 you can also consider the following projects:
rure-go - Go bindings to Rust's regex engine.
re2 - R interface to Google re2 (C++) regular expression engine