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.
A Visual Guide to Regular Expression

A Visual Guide to Regular Expression

1271
Comments 29
7 min read
The Regular Expression (RegEx) Cheat Sheet you always wanted

The Regular Expression (RegEx) Cheat Sheet you always wanted

935
Comments 14
4 min read
The Complete Guide to Regular Expressions (Regex)

The Complete Guide to Regular Expressions (Regex)

696
Comments 9
14 min read
20 Small Steps to Become a Regex Master

20 Small Steps to Become a Regex Master

609
Comments 15
42 min read
I hated Regex so much that I made iHateRegex.io

I hated Regex so much that I made iHateRegex.io

589
Comments 95
1 min read
JavaScript regular expressions cheatsheet and examples

JavaScript regular expressions cheatsheet and examples

178
Comments 1
8 min read
RegExp Cheatsheet to speed up code editing and refactor

RegExp Cheatsheet to speed up code editing and refactor

173
Comments 4
5 min read
Getting Started with Regular Expressions

Getting Started with Regular Expressions

121
Comments 15
4 min read
Regex isn't that hard

Regex isn't that hard

117
Comments 24
5 min read
VS Code: Search-and-Replace Regex

VS Code: Search-and-Replace Regex

114
Comments 18
2 min read
The string-matching regex explained step by step

The string-matching regex explained step by step

108
Comments 9
8 min read
Step up your Regex game

Step up your Regex game

103
Comments 4
5 min read
World-first Static time RegEx engine with O(0) time complexity

World-first Static time RegEx engine with O(0) time complexity

90
Comments 9
4 min read
6 Use Cases for Regex in Your Daily Work

6 Use Cases for Regex in Your Daily Work

88
Comments 13
8 min read
Regex: From beginner to BEST on your team in one blog 👑

Regex: From beginner to BEST on your team in one blog 👑

78
Comments 3
12 min read
There's only one way to validate an email address

There's only one way to validate an email address

78
Comments 32
3 min read
Let's stop using [a-zA-Z]+

Let's stop using [a-zA-Z]+

76
Comments 6
2 min read
How do you feel about regex?

How do you feel about regex?

73
Comments 73
1 min read
Complete Guide To Make You a Regex Guru

Complete Guide To Make You a Regex Guru

68
Comments 7
20 min read
Regular Expressions cheat sheet

Regular Expressions cheat sheet

65
Comments 3
2 min read
What the Regex?! A Practical Guide to Regular Expressions

What the Regex?! A Practical Guide to Regular Expressions

65
Comments 3
5 min read
How to use Regular Expressions in JavaScript

How to use Regular Expressions in JavaScript

64
Comments 4
8 min read
Python regular expression cheatsheet and examples

Python regular expression cheatsheet and examples

61
Comments
9 min read
Regular Expressions(RegEx) in Python

Regular Expressions(RegEx) in Python

53
Comments 2
18 min read
Learning Vim Regex

Learning Vim Regex

46
Comments 2
22 min read
Validating email addresses using regular expressions in JavaScript

Validating email addresses using regular expressions in JavaScript

44
Comments 6
3 min read
How do you regex?

How do you regex?

42
Comments 24
1 min read
Basic Regex

Basic Regex

41
Comments 1
6 min read
Regular Expressions And Template Literals

Regular Expressions And Template Literals

41
Comments 6
4 min read
Breaking Down a Complex RegEx

Breaking Down a Complex RegEx

41
Comments
3 min read
Intro to Bash Regular Expressions

Intro to Bash Regular Expressions

40
Comments 2
15 min read
JavaScript RegEx

JavaScript RegEx

39
Comments
3 min read
Searching Through a Nested Object Using Recursion, Regular Expressions, and Sets

Searching Through a Nested Object Using Recursion, Regular Expressions, and Sets

37
Comments
4 min read
Regex basics with explanations and examples

Regex basics with explanations and examples

36
Comments
4 min read
Javascript: When Less is More

Javascript: When Less is More

33
Comments 1
4 min read
Learning to Love Regex

Learning to Love Regex

33
Comments
8 min read
Write Regex Pattern for Password Validation Like a Pro

Write Regex Pattern for Password Validation Like a Pro

33
Comments 7
3 min read
Regex is not your enemy

Regex is not your enemy

32
Comments 6
7 min read
Can you find the bug in this piece of code? - RegExp edition 🌍

Can you find the bug in this piece of code? - RegExp edition 🌍

31
Comments 24
1 min read
Powerful regex for the practical dev

Powerful regex for the practical dev

26
Comments 2
6 min read
ExpressÔes Regulares II - classes de caracteres

ExpressÔes Regulares II - classes de caracteres

25
Comments
2 min read
Using Regular Expressions to Filter Your Server’s Logs

Using Regular Expressions to Filter Your Server’s Logs

25
Comments 3
10 min read
RegEx cheat sheet for JavaScript

RegEx cheat sheet for JavaScript

25
Comments
2 min read
Day 16 of 100DaysOfCode

Day 16 of 100DaysOfCode

24
Comments
4 min read
Introducing Regcode - Create Regular Expressions Easily with Code

Introducing Regcode - Create Regular Expressions Easily with Code

22
Comments 7
3 min read
Regex Cheat Sheet

Regex Cheat Sheet

22
Comments
13 min read
BREAKING DOWN REGULAR EXPRESSIONS[0] — ONE STEP AT A TIME

BREAKING DOWN REGULAR EXPRESSIONS[0] — ONE STEP AT A TIME

22
Comments
6 min read
What are some Regular Expression concepts you find hard to grok?

What are some Regular Expression concepts you find hard to grok?

22
Comments 13
1 min read
Explain Regular Expressions Like I'm Five

Explain Regular Expressions Like I'm Five

22
Comments 1
5 min read
Introduction to Regular Expressions

Introduction to Regular Expressions

21
Comments 5
2 min read
Project Upgrade: Voice Controlled To-Do List App with Deepgram and Vue 3

Project Upgrade: Voice Controlled To-Do List App with Deepgram and Vue 3

21
Comments
15 min read
VS Code: Search-and-Replace Regex with Dollar-Sign

VS Code: Search-and-Replace Regex with Dollar-Sign

21
Comments 1
2 min read
ExpressÔes Regulares I - o båsico

ExpressÔes Regulares I - o båsico

20
Comments
3 min read
Caso de uso: RegEx

Caso de uso: RegEx

19
Comments 1
3 min read
ExpressÔes Regulares III - ùncoras, limites de palavras e caracteres de palavras

ExpressÔes Regulares III - ùncoras, limites de palavras e caracteres de palavras

19
Comments
2 min read
How we sped up a Regex by 50,000x to make a family-friendly MMO safe for all

How we sped up a Regex by 50,000x to make a family-friendly MMO safe for all

19
Comments 2
19 min read
Passgen: A password generator that uses a regex-like syntax to create secure passwords of any shape.

Passgen: A password generator that uses a regex-like syntax to create secure passwords of any shape.

18
Comments 1
7 min read
How CloudFlare could have avoided its outage (maybe)

How CloudFlare could have avoided its outage (maybe)

18
Comments 6
3 min read
Making Regular Expressions Readable in JavaScript

Making Regular Expressions Readable in JavaScript

17
Comments 9
2 min read
Why is my regex working intermittently?

Why is my regex working intermittently?

17
Comments 12
4 min read
loading...