go-pcre
Perl Compatible Regular Expression for Go (by GRbit)
regexcmp
A tool to compare different regexp libraries in Go (by karust)
go-pcre | regexcmp | |
---|---|---|
2 | 1 | |
44 | 1 | |
- | - | |
4.1 | 4.9 | |
about 1 month ago | 9 months ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | 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.
go-pcre
Posts with mentions or reviews of go-pcre.
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.
go-pcre (1.0.0) - provides support for Perl compatible regular expressions using libpcre or libpcre++. JIT compilation is available, making this fork much faster than its counterparts. On the downside, you'll need the libpcre3-dev dependency;
-
GO App has very bad performance vs. NodeJS version. Seeking answers.
If you want faster performance at the cost of potentially decreased safety, look at the fast-performing go examples in the benchmark I linked which bind to `libpcre`. Like this or this.
regexcmp
Posts with mentions or reviews of regexcmp.
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.
To answer these questions, I wrote a small benchmarking program that can be used to compare different regex engines in terms of speed and memory usage. If you want to test it yourself or evaluate the correctness of the used methods, here is the code.
What are some alternatives?
When comparing go-pcre and regexcmp you can also consider the following projects:
golang-pkg-pcre
gohs - GoLang Binding of HyperScan https://www.hyperscan.io/
regextest-golang
go-re2 - Drop-in replacement for regexp using re2, for any Go app
regex-benchmark - It's just a simple regex benchmark of different programming languages.
go-yara - Go bindings for YARA
participle - A parser library for Go
rure-go - Go bindings to Rust's regex engine.
regexp2 - A full-featured regex engine in pure Go based on the .NET engine