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.
Regex Cheatsheet for Beginners (With Copy-Paste Examples)

Regex Cheatsheet for Beginners (With Copy-Paste Examples)

Comments
3 min read
Cloudflare outage 2019: how one regex caused 27 minutes of 502s

Cloudflare outage 2019: how one regex caused 27 minutes of 502s

1
Comments
8 min read
Stop Trimming \r Off Every Regex Match. .NET 11 Has AnyNewLine

Stop Trimming \r Off Every Regex Match. .NET 11 Has AnyNewLine

1
Comments
4 min read
Grundpreis, jämförpris, egységár: reading unit prices on shops in 20+ EU languages

Grundpreis, jämförpris, egységár: reading unit prices on shops in 20+ EU languages

Comments
3 min read
Your test fixtures are lying to you: what 13 real Minecraft crash reports taught me

Your test fixtures are lying to you: what 13 real Minecraft crash reports taught me

1
Comments
5 min read
Regular Expressions Without the Fear

Regular Expressions Without the Fear

Comments
3 min read
Go regexp too slow? I built coregex, a drop-in replacement. An audit found 16 bugs — here's what broke

Go regexp too slow? I built coregex, a drop-in replacement. An audit found 16 bugs — here's what broke

2
Comments 4
6 min read
How I parse pack sizes like 6x0,5l, 25 dag and Lt 2,0X6 across 27 European countries

How I parse pack sizes like 6x0,5l, 25 dag and Lt 2,0X6 across 27 European countries

Comments
4 min read
Our support desk reads emailed replies, so something has to find where your words stop

Our support desk reads emailed replies, so something has to find where your words stop

Comments 1
5 min read
A 4-line regex took down our image pipeline for 6 hours. It was legal.

A 4-line regex took down our image pipeline for 6 hours. It was legal.

Comments
4 min read
Regular Expressions Without the Fear

Regular Expressions Without the Fear

Comments
3 min read
How I built a VS Code extension that draws Railroad diagrams for regex and catches ReDoS

How I built a VS Code extension that draws Railroad diagrams for regex and catches ReDoS

1
Comments
4 min read
Arabic digits in web forms - why a valid phone number gets rejected, and how to fix it in JavaScript

Arabic digits in web forms - why a valid phone number gets rejected, and how to fix it in JavaScript

1
Comments 3
5 min read
The Alphabet Code: What Happens When You Run a Simple Rule on the Letter “a”

The Alphabet Code: What Happens When You Run a Simple Rule on the Letter “a”

1
Comments
6 min read
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
👋 Sign in for the ability to sort posts by relevant, latest, or top.