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.
Splitting "jumped" into jump/ed with three regexes, and the 3 words out of 36 it got wrong

Splitting "jumped" into jump/ed with three regexes, and the 3 words out of 36 it got wrong

Comments
3 min read
Build a regex engine from scratch in about 130 lines of Python

Build a regex engine from scratch in about 130 lines of Python

1
Comments 2
5 min read
Half inch, 1/2", or 15mm? Teaching a store search box that they're the same thing

Half inch, 1/2", or 15mm? Teaching a store search box that they're the same thing

Comments
3 min read
ReDoS: catastrophic backtracking in a regex input check

ReDoS: catastrophic backtracking in a regex input check

Comments
8 min read
Why canned food unit prices lie about net and drained weight

Why canned food unit prices lie about net and drained weight

Comments
3 min read
I Wrote a Regex to Check My Own Site's Arithmetic. It Found Six Errors. All Six Were Mine.

I Wrote a Regex to Check My Own Site's Arithmetic. It Found Six Errors. All Six Were Mine.

Comments
3 min read
Ruby MatchData Documentation Revised

Ruby MatchData Documentation Revised

Comments
1 min read
Your URL Check Passed the Second Line and the Browser Ran the First

Your URL Check Passed the Second Line and the Browser Ran the First

Comments
2 min read
Hot-loading a regex word list from a website into a production API without getting ReDoS'd

Hot-loading a regex word list from a website into a production API without getting ReDoS'd

Comments
7 min read
How "4 Becher à 125 g" breaks price-per-kg math

How "4 Becher à 125 g" breaks price-per-kg math

Comments
3 min read
$10 is a price, $1.9T is a stat: pulling real numbers out of landing pages

$10 is a price, $1.9T is a stat: pulling real numbers out of landing pages

Comments 2
2 min read
RE2 vs PCRE: Every Regex Construct That Silently Breaks in GA4 (and the Fix)

RE2 vs PCRE: Every Regex Construct That Silently Breaks in GA4 (and the Fix)

Comments
2 min read
A 31-character name froze this Node server for 6 seconds

A 31-character name froze this Node server for 6 seconds

1
Comments
4 min read
\b became 0x08: the control bytes hiding in our Python regexes

\b became 0x08: the control bytes hiding in our Python regexes

Comments
3 min read
Turning Spoken Commands into Safe Actions: Regex First, the Language Model Second

Turning Spoken Commands into Safe Actions: Regex First, the Language Model Second

Comments
4 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.