Go Regex

Open-source Go projects categorized as Regex

Top 12 Go Regex Projects

  1. regexp2

    A full-featured regex engine in pure Go based on the .NET engine

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. rare

    Create terminal-based histograms, bar graphs, tables, heatmaps and more in realtime using regex and expressions. (by zix99)

    Project mention: TIL about rare, a CLI aggregation visualization tool | news.ycombinator.com | 2026-01-26
  4. coregex

    Pure Go production-grade regex engine with SIMD optimizations. Up to 3-3000x+ faster than stdlib.

    Project mention: We Built the First Pure Go DXIL Generator — Because Optimizing the Wrong Path Wasn't Enough | dev.to | 2026-04-05

    We weren't afraid of binary formats. Before gogpu, we built scigolib/hdf5 — a Pure Go implementation of HDF5, NASA's hierarchical data format with its own B-tree indices, chunked storage, and compression pipelines. After parsing HDF5 superblocks and fractal heaps in pure Go, LLVM bitcode felt almost... reasonable. We also built coregx/coregex — a regex engine from scratch. Binary formats, state machines, low-level encoding — this is what we do.

  5. codesearch

    Fork of Google codesearch with more options (by junkblocker)

  6. run-all

    run-all is a command-line tool that allows you to execute commands across multiple directories based on a customizable directory pattern.

  7. colorgrep

    displays matching patterns in specific color

  8. pcre

    Pure-Go port of the PCRE2 regular expression engine.

  9. go-regex

    A High Performance PCRE Regex Package That Uses A Cache.

  10. sfmatch

    A library that allows matching input strings into structs using regex matches.

  11. uawk

    AWK interpreter in Go with coregex regex engine

    Project mention: Cursor's latest "browser experiment" implied success without evidence | news.ycombinator.com | 2026-01-16

    Not me personally, but a GitHub user wrote a replacement for Go's regexp library that was "up to 3-3000x+ faster than stdlib": https://github.com/coregx/coregex ... at first I was impressed, so started testing it and reporting bugs, but as soon as I ran my own benchmarks, it all fell apart (https://github.com/coregx/coregex/issues/29). After some mostly-bot updates, that issue was closed. But someone else opened a very similar one recently (https://github.com/coregx/coregex/issues/79) -- same deal, "actually, it's slower than the stdlib in my tests". Basically AI slop with poor tests, poor benchmarks, and way oversold. How he's positioning these projects is the problematic bit, I reckon, not the use of AI.

    Same user did a similar thing by creating an AWK interpreter written in Go using LLMs: https://github.com/kolkov/uawk -- as the creator of (I think?) the only AWK interpreter written in Go (https://github.com/benhoyt/goawk), I was curious. It turns out that if there's only one item in the training data (GoAWK), AI likes to copy and paste freely from the original. But again, it's poorly tested and poorly benchmarked.

    I just don't see how one can get quality like this, without being realistic about code review, testing, and benchmarking.

  12. regexcmp

    A tool to compare different regexp libraries in Go

  13. matchgo

    matchgo is a minimalistic regex engine that allows you to compile regex patterns, check strings for matches, and extract matched groups.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Regex discussion

Log in or Post with

Go Regex related posts

  • TIL about rare, a CLI aggregation visualization tool

    1 project | news.ycombinator.com | 26 Jan 2026
  • Best regexp alternative for Go. Benchmarks. Plots.

    8 projects | dev.to | 26 Aug 2023
  • Regex RE2 doesn't support specific Turkish characters.

    1 project | /r/golang | 4 Mar 2023
  • Show a man-like interface

    3 projects | /r/golang | 14 Dec 2022
  • I added heatmaps to my realtime text visualizer, rare (Also: histograms, tables, bargraphs, etc)

    1 project | /r/coolgithubprojects | 2 Oct 2022
  • Added heatmaps to my realtime text analysis tool, rare

    1 project | /r/golang | 2 Oct 2022
  • badkeys - checking cryptographic keys for known vulnerabilities

    1 project | /r/crypto | 26 Apr 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Regex projects in Go? This list will help you:

# Project Stars
1 regexp2 1,150
2 rare 352
3 coregex 223
4 codesearch 52
5 run-all 23
6 colorgrep 19
7 pcre 16
8 go-regex 12
9 sfmatch 8
10 uawk 6
11 regexcmp 5
12 matchgo 0

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 4th most popular programming language
based on number of references?