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 know, I'll use a regex!

I know, I'll use a regex!

6
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

22
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

6
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

8
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
What is a POSIX BRE compliant regex?

What is a POSIX BRE compliant regex?

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

Understanding Regular Expressions once and for all [PART 2]

5
Comments
4 min read
Regex in Go

Regex in Go

6
Comments
4 min read
What Does "\K" Mean in Regex?

What Does "\K" Mean in Regex?

6
Comments
1 min read
Master Regular Expression Through Real-World Examples

Master Regular Expression Through Real-World Examples

9
Comments
4 min read
Easily remove empty lines using regular expression in Visual Studio Code

Easily remove empty lines using regular expression in Visual Studio Code

6
Comments
2 min read
Regular Expressions made easy: a declarative approach

Regular Expressions made easy: a declarative approach

5
Comments
4 min read
An Overview of Regex Expressions

An Overview of Regex Expressions

6
Comments
5 min read
Repeated Capturing Group

Repeated Capturing Group

3
Comments
1 min read
Use sed To Extract Filename, Extension, and Directory From Path

Use sed To Extract Filename, Extension, and Directory From Path

6
Comments
3 min read
5.How to match word and non word characters.

5.How to match word and non word characters.

3
Comments
1 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
4. How to match whitespace and non whitespace characters.

4. How to match whitespace and non whitespace characters.

8
Comments
1 min read
3.Matching digits and non digits character.

3.Matching digits and non digits character.

6
Comments
1 min read
2. The dot(.)

2. The dot(.)

7
Comments
1 min read
1.Introduction about Regex

1.Introduction about Regex

5
Comments
1 min read
Formating Dates With Vim Substitutuions

Formating Dates With Vim Substitutuions

5
Comments 2
2 min read
Speed up Regex performance with .NET 5

Speed up Regex performance with .NET 5

9
Comments 2
1 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
Use Java replaceAll() instead of ColdFusion ReReplaceNoCase()

Use Java replaceAll() instead of ColdFusion ReReplaceNoCase()

6
Comments 1
2 min read
Beware of the star!

Beware of the star!

9
Comments
5 min read
Use stateful JavaScript Regular Expressions

Use stateful JavaScript Regular Expressions

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

Understanding Regular Expressions once and for all [PART 1]

10
Comments
5 min read
Regular Expressions(RegEx)in JavaScript

Regular Expressions(RegEx)in JavaScript

5
Comments
6 min read
How to remember the `m` and `s` modifier for a regular expression in JavaScript?

How to remember the `m` and `s` modifier for a regular expression in JavaScript?

7
Comments
4 min read
The only 4 Regex Notations You Need To Know (to start) ❤️

The only 4 Regex Notations You Need To Know (to start) ❤️

15
Comments 1
6 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
Recognize Regex Easily

Recognize Regex Easily

11
Comments
4 min read
Regex: from a backup file list to a RESTORE script in under 2 minutes

Regex: from a backup file list to a RESTORE script in under 2 minutes

6
Comments
5 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
#1 Live Kata Report

#1 Live Kata Report

7
Comments
2 min read
TrackingURLs - A ColdFusion function to parse Shipping Tracking Numbers

TrackingURLs - A ColdFusion function to parse Shipping Tracking Numbers

5
Comments 2
1 min read
Sanitizing console.log from HTML using ColdFusion Regex

Sanitizing console.log from HTML using ColdFusion Regex

3
Comments
1 min read
How to get query parameter from URL in Google Data Studio

How to get query parameter from URL in Google Data Studio

6
Comments 1
1 min read
Launched iHateregex.io in Producthunt

Launched iHateregex.io in Producthunt

7
Comments
1 min read
Component Arguments vs HTML Attributes bug hunt

Component Arguments vs HTML Attributes bug hunt

5
Comments
2 min read
Best Way To Validate Email In Javascript

Best Way To Validate Email In Javascript

6
Comments
1 min read
Why is my regex working intermittently?

Why is my regex working intermittently?

17
Comments 12
4 min read
Breaking Down a Complex RegEx

Breaking Down a Complex RegEx

41
Comments
3 min read
ColdFusion isIPInRange() UDF to support IPv4, IPv6, CIDR & Regex

ColdFusion isIPInRange() UDF to support IPv4, IPv6, CIDR & Regex

7
Comments
2 min read
Visualize types of work based on the commits

Visualize types of work based on the commits

6
Comments
4 min read
loading...