
Regular Expressions
How to Use Regex in Go regexp Package the Right Way
Use Go's regexp package: RE2 syntax, compile once with MustCompile, find and replace with submatches, named groups, flags, QuoteMeta and what RE2 leaves out.
6 min read
Tag
3 posts

Use Go's regexp package: RE2 syntax, compile once with MustCompile, find and replace with submatches, named groups, flags, QuoteMeta and what RE2 leaves out.

Package a Python command line tool with pyproject.toml and a console script entry point, install it with pipx or uv tool, upgrade it and build for others.

Publish a shell tool for Homebrew and apt: a release tarball, a formula in a tap, a Debian package with dpkg-deb, checksums and an apt repository.