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..why can’t you just be normal? 🤯

Regex..why can’t you just be normal? 🤯

10
Comments 9
1 min read
Working with double-byte regex expressions and Python3

Working with double-byte regex expressions and Python3

7
Comments 2
1 min read
Step up your Regex game

Step up your Regex game

105
Comments 4
5 min read
How to use Regular Expressions in JavaScript

How to use Regular Expressions in JavaScript

67
Comments 4
8 min read
Making Regular Expressions Readable in JavaScript

Making Regular Expressions Readable in JavaScript

8
Comments
2 min read
Regular Expressions cheat sheet

Regular Expressions cheat sheet

65
Comments 3
2 min read
Refactoring HTML code with help of regex search and replace

Refactoring HTML code with help of regex search and replace

8
Comments
2 min read
Making Regular Expressions Readable in JavaScript

Making Regular Expressions Readable in JavaScript

17
Comments 9
2 min read
Becoming a wizard with Vim

Becoming a wizard with Vim

5
Comments 3
3 min read
Regex: finding repetitions

Regex: finding repetitions

8
Comments
1 min read
Answer: Regular Expressions and negating a whole character group [duplicate]

Answer: Regular Expressions and negating a whole character group [duplicate]

3
Comments
1 min read
Parte 1: RegExp - Qué son, para qué se utilizan y cómo funcionan

Parte 1: RegExp - Qué son, para qué se utilizan y cómo funcionan

4
Comments
4 min read
Regex - Character Ranges

Regex - Character Ranges

8
Comments
1 min read
A Visual Guide to Regular Expression

A Visual Guide to Regular Expression

1272
Comments 29
7 min read
Learning to Love Regex

Learning to Love Regex

33
Comments
8 min read
Ruby's gsub method: What, Why, & How

Ruby's gsub method: What, Why, & How

7
Comments
5 min read
Emulating regexp lookarounds in GNU sed

Emulating regexp lookarounds in GNU sed

1
Comments
5 min read
How to flip array keys and values in the code editor?

How to flip array keys and values in the code editor?

17
Comments 2
1 min read
Intro to Bash Regular Expressions

Intro to Bash Regular Expressions

40
Comments 2
15 min read
Yup Schema Commonly Used Examples

Yup Schema Commonly Used Examples

17
Comments 2
1 min read
Reflecting the first 20 days of 100DaysOfCode

Reflecting the first 20 days of 100DaysOfCode

5
Comments
6 min read
Re-indenting with Notepad++ regex replace

Re-indenting with Notepad++ regex replace

2
Comments
1 min read
Day 14 of 100DaysOfCode

Day 14 of 100DaysOfCode

4
Comments
1 min read
Day 18 of 100DaysOfCode

Day 18 of 100DaysOfCode

6
Comments
2 min read
Espressioni Regolari in JavaScript

Espressioni Regolari in JavaScript

9
Comments 3
5 min read
Basic Regex

Basic Regex

41
Comments 1
6 min read
Python RegEx Tutorial with practice

Python RegEx Tutorial with practice

5
Comments
2 min read
Regex isn't that hard

Regex isn't that hard

117
Comments 24
5 min read
Find all ip addresses in a project

Find all ip addresses in a project

6
Comments
1 min read
Day 16 of 100DaysOfCode

Day 16 of 100DaysOfCode

24
Comments
4 min read
Powerful regex for the practical dev #2

Powerful regex for the practical dev #2

1
Comments
5 min read
Regex to match strings ending with en.srt or es.srt

Regex to match strings ending with en.srt or es.srt

5
Comments
1 min read
Regex for Kenyan Phone Number format 07XXXXXXXX in Python

Regex for Kenyan Phone Number format 07XXXXXXXX in Python

12
Comments
1 min read
Powerful regex for the practical dev

Powerful regex for the practical dev

26
Comments 2
6 min read
Extract mobile number using regex

Extract mobile number using regex

2
Comments
1 min read
Correctly escaping regular expressions

Correctly escaping regular expressions

5
Comments
2 min read
On regex capturing groups

On regex capturing groups

8
Comments
3 min read
Restrict Editable Area in Monaco Editor - Part 2

Restrict Editable Area in Monaco Editor - Part 2

8
Comments
2 min read
Replacing placeholders in Ruby on Rails

Replacing placeholders in Ruby on Rails

10
Comments 3
2 min read
JavaScript RegEx Exercises 01 13:35

JavaScript RegEx Exercises 01

14
Comments
1 min read
Understanding Regular Expressions once and for all [PART 4]

Understanding Regular Expressions once and for all [PART 4]

4
Comments
3 min read
I know, I'll use a regex!

I know, I'll use a regex!

5
Comments
5 min read
Greedy and lazy match in regex

Greedy and lazy match in regex

3
Comments
1 min read
An ELI5 version of REGEX and NFA

An ELI5 version of REGEX and NFA

5
Comments
2 min read
Regex Named Capturing Groups in JavaScript and Node

Regex Named Capturing Groups in JavaScript and Node

8
Comments 1
1 min read
Regular Expressions in 1 Minute

Regular Expressions in 1 Minute

7
Comments
3 min read
C# Multi String Replace Extension Method

C# Multi String Replace Extension Method

10
Comments
5 min read
Explain Regular Expressions Like I'm Five

Explain Regular Expressions Like I'm Five

23
Comments 1
5 min read
Checking whether a number sequence has two or four digits in Python

Checking whether a number sequence has two or four digits in Python

7
Comments
2 min read
Regex Cheat Sheet

Regex Cheat Sheet

5
Comments
1 min read
Introduction To Regular Expression

Introduction To Regular Expression

4
Comments
1 min read
Awesome Regex Resources

Awesome Regex Resources

9
Comments
3 min read
Regex Cheat Sheet

Regex Cheat Sheet

3
Comments
2 min read
linux : regex

linux : regex

10
Comments
3 min read
Utilize Nginx to fulfill 301 redirect to root domain of https

Utilize Nginx to fulfill 301 redirect to root domain of https

5
Comments
3 min read
Apache Solr and Greedy Regex

Apache Solr and Greedy Regex

6
Comments
6 min read
Regular Expressions - not so regular!

Regular Expressions - not so regular!

3
Comments 1
5 min read
JavaScript RegEx

JavaScript RegEx

39
Comments
3 min read
Understanding Regular Expressions once and for all [PART 3]

Understanding Regular Expressions once and for all [PART 3]

6
Comments
4 min read
Finding used values of XML attributes using the command line

Finding used values of XML attributes using the command line

1
Comments
5 min read
loading...