DEV Community

Regular Expressions

A regular expression (shortened as regex or regexp also referred to as regular expression) is a sequence of characters that specifies a search pattern.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
I scraped 89 job postings to find out how my salary parser was lying to me

I scraped 89 job postings to find out how my salary parser was lying to me

Comments
9 min read
I built a daily regex game. Scoring regex fairly was the hard part

I built a daily regex game. Scoring regex fairly was the hard part

Comments
5 min read
I built a regex debugger that shows every backtrack (flame graph included)

I built a regex debugger that shows every backtrack (flame graph included)

Comments
3 min read
Four filters returned nothing and I read all four as nothing being there

Four filters returned nothing and I read all four as nothing being there

6
Comments
3 min read
Benchmarking regex patterns properly: P95/P99, equivalence checks, real engines

Benchmarking regex patterns properly: P95/P99, equivalence checks, real engines

Comments
2 min read
Testing automata-theory exercises in the browser: a regex flavor for CS coursework

Testing automata-theory exercises in the browser: a regex flavor for CS coursework

Comments
2 min read
I ran my file-type detector over 8,900 real files. It found failures my 260 tests had missed.

I ran my file-type detector over 8,900 real files. It found failures my 260 tests had missed.

Comments
18 min read
Regex Against a PDF: The One Endpoint That Skips OCR Entirely

Regex Against a PDF: The One Endpoint That Skips OCR Entirely

Comments
6 min read
The Regex That Took Down Cloudflare for 27 Minutes

The Regex That Took Down Cloudflare for 27 Minutes

Comments
2 min read
Debugging a 41-second regex hang with a regex tester in 2026

Debugging a 41-second regex hang with a regex tester in 2026

Comments
6 min read
I built a ReDoS scanner that proves each bug offline — and hands you a verified fix

I built a ReDoS scanner that proves each bug offline — and hands you a verified fix

1
Comments 3
5 min read
An unquoted heredoc halved my backslashes and turned a character class into the letter w

An unquoted heredoc halved my backslashes and turned a character class into the letter w

5
Comments
4 min read
Stop letting your AI guess: The case for deterministic Regex in MCP

Stop letting your AI guess: The case for deterministic Regex in MCP

1
Comments
4 min read
Parsing Trading Data With Regex: Test a Whole Suite of Cases at Once, Not One String

Parsing Trading Data With Regex: Test a Whole Suite of Cases at Once, Not One String

Comments
4 min read
The Regex Bug That Passes Code Review, Passes Tests, and Takes Down Prod

The Regex Bug That Passes Code Review, Passes Tests, and Takes Down Prod

3
Comments
6 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.