Regular expressions that work "everywhere"
Summary
The article discusses the challenges of regex portability across tools like sed, awk, grep, and Emacs, and provides a subset of regex features that work reliably across these environments.
View Cached Full Text
Cached at: 06/28/26, 01:52 AM
Similar Articles
The true power of regular expressions (2012)
This article explains that modern regex engines like PCRE can parse far more than regular languages, debunking the common claim that HTML cannot be parsed with regex.
Platform Support for GNU Extensions to Basic Regular Expressions
An article investigating platform support for GNU extensions to Basic Regular Expressions (BRE), specifically the `\+` operator, and finding it works on FreeBSD, macOS, and musl-based distributions like Chimera Linux.
@TrisH0x2A: Rob Pike wrote a complete regular expression matcher in about 30 lines of C it supports ^, ., *, and $ using only recur…
A tweet highlights Rob Pike's classic 30-line regular expression matcher in C, demonstrating recursion and pointer arithmetic as an introduction to regex engines.
what 262,715 regex questions on stack overflow haven't answered
The author analyzes 262,715 Stack Overflow questions to identify common regex pain points and demonstrates how their new regex engine, RE#, solves these issues using complement and intersection operations.
what 262,715 regex questions on stack overflow haven't answered (part 2)
A deep dive into the limitations of regex for parsing HTML, inspired by the famous Stack Overflow answer, discussing formal language theory and the power of industrial regex engines.