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.
Complete Guide To Make You a Regex Guru

Complete Guide To Make You a Regex Guru

68
Comments 7
20 min read
Persson's Pyramid Puzzle - Level 5

Persson's Pyramid Puzzle - Level 5

6
Comments
1 min read
RegExp Basics: It's Not That Hard!

RegExp Basics: It's Not That Hard!

3
Comments
3 min read
Regular Expressions—A Rite of Passage for Web Developers

Regular Expressions—A Rite of Passage for Web Developers

1
Comments
17 min read
Refactoring. RegExp.

Refactoring. RegExp.

1
Comments
2 min read
Regex #1: Understanding Regex, Regex-Based String Methods and Regex Flags

Regex #1: Understanding Regex, Regex-Based String Methods and Regex Flags

Comments
4 min read
How to Validate Password Strength Using Regex and JavaScript

How to Validate Password Strength Using Regex and JavaScript

22
Comments 3
4 min read
Extract dynamic text using regex capturing group

Extract dynamic text using regex capturing group

3
Comments 1
1 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 to Build a RegEx Engine in Python (Part 6: the engine)

How to Build a RegEx Engine in Python (Part 6: the engine)

3
Comments 1
4 min read
What Are Regular Expressions? A Simple JavaScript Regex to Format Phone Numbers

What Are Regular Expressions? A Simple JavaScript Regex to Format Phone Numbers

4
Comments
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
manipulate strings with sed

manipulate strings with sed

3
Comments 1
1 min read
A NEW REGEX ENGINE IS HERE!

A NEW REGEX ENGINE IS HERE!

4
Comments
2 min read
よく使う正規表現の整理 -- 文頭文末やある文字の前後など

よく使う正規表現の整理 -- 文頭文末やある文字の前後など

4
Comments
2 min read
Doesn't He Have Intern-Elves For This?

Doesn't He Have Intern-Elves For This?

3
Comments
3 min read
JSAbacusFramework.io

JSAbacusFramework.io

Comments
1 min read
Regular Expressions: A Basic Explanation

Regular Expressions: A Basic Explanation

1
Comments
5 min read
🐍 regex: a Python example using lookbehind and lookahead

🐍 regex: a Python example using lookbehind and lookahead

11
Comments
3 min read
Regular expression capture and replace examples

Regular expression capture and replace examples

8
Comments
3 min read
How to bold matching characters in text JavaScript.

How to bold matching characters in text JavaScript.

1
Comments 1
1 min read
Regular expressions are fun!

Regular expressions are fun!

5
Comments
5 min read
Matchsticks

Matchsticks

1
Comments
2 min read
On the Virtues of RegExp in JS

On the Virtues of RegExp in JS

2
Comments
3 min read
PHP | Regular Expressions

PHP | Regular Expressions

2
Comments
9 min read
Expressões Regulares IV - as três regras da regex I - backtracking

Expressões Regulares IV - as três regras da regex I - backtracking

10
Comments
7 min read
Open Source Adventures: Episode 81: Exploring Raku Regular Expression API

Open Source Adventures: Episode 81: Exploring Raku Regular Expression API

2
Comments 2
3 min read
Open Source Adventures: Episode 80: Exploring Python Regular Expression API

Open Source Adventures: Episode 80: Exploring Python Regular Expression API

3
Comments
6 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
Open Source Adventures: Episode 79: Exploring Crystal Regular Expression API

Open Source Adventures: Episode 79: Exploring Crystal Regular Expression API

9
Comments
4 min read
Medicine for Rudolph

Medicine for Rudolph

1
Comments 3
4 min read
1. Regex - podstawy

1. Regex - podstawy

5
Comments
5 min read
Learning Regular Expressions

Learning Regular Expressions

3
Comments
4 min read
Expressões Regulares II - classes de caracteres

Expressões Regulares II - classes de caracteres

25
Comments
2 min read
The Regular Expression (RegEx) Cheat Sheet you always wanted

The Regular Expression (RegEx) Cheat Sheet you always wanted

938
Comments 14
4 min read
Expressões Regulares I - o básico

Expressões Regulares I - o básico

20
Comments
3 min read
Internet Protocol Version 7

Internet Protocol Version 7

1
Comments
7 min read
Mongodb text index vs regex for text searching

Mongodb text index vs regex for text searching

5
Comments 1
3 min read
Open Source Adventures: Episode 77: Improving Regular Expressions API

Open Source Adventures: Episode 77: Improving Regular Expressions API

1
Comments
4 min read
Google Sheets Tutorial – How to Use Regex and VLOOKUP to Display Images from Google Drive

Google Sheets Tutorial – How to Use Regex and VLOOKUP to Display Images from Google Drive

Comments
6 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
Regex basics

Regex basics

7
Comments 2
7 min read
Intro to Regular Expressions

Intro to Regular Expressions

4
Comments 2
4 min read
A Comprehensive Guide to Regular Expressions

A Comprehensive Guide to Regular Expressions

4
Comments
9 min read
How to Match a Phone Number with Regex and JavaScript

How to Match a Phone Number with Regex and JavaScript

1
Comments
5 min read
Expresiones Regulares

Expresiones Regulares

Comments
2 min read
casual-markdown: lightweight regexp-base markdown parser (+TOC, scrollspy and frontmatter)

casual-markdown: lightweight regexp-base markdown parser (+TOC, scrollspy and frontmatter)

10
Comments
2 min read
Introducción a Regex

Introducción a Regex

3
Comments
3 min read
Removing HTML Tags with RegEx or using DOMParser() using JavaScript.

Removing HTML Tags with RegEx or using DOMParser() using JavaScript.

13
Comments 4
3 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
Web Scraping con scrapy y regex

Web Scraping con scrapy y regex

5
Comments
3 min read
Re2j instead of default regEx in Java: when and how to use it

Re2j instead of default regEx in Java: when and how to use it

6
Comments
6 min read
Verify password with a single regex

Verify password with a single regex

8
Comments
3 min read
Remove extra space from text with regex - Python

Remove extra space from text with regex - Python

3
Comments
1 min read
Write Regex Pattern for Password Validation Like a Pro

Write Regex Pattern for Password Validation Like a Pro

80
Comments 7
3 min read
Using Regular Expressions(RegExp) in Dart/Flutter

Using Regular Expressions(RegExp) in Dart/Flutter

16
Comments
14 min read
Beginner's Guide to Regex

Beginner's Guide to Regex

5
Comments
6 min read
The Complete Guide to Regular Expressions (Regex)

The Complete Guide to Regular Expressions (Regex)

700
Comments 9
14 min read
Using Nokogiri and RegEx to Scan a Webpage in Ruby

Using Nokogiri and RegEx to Scan a Webpage in Ruby

10
Comments
4 min read
Where to start with regular expressions?

Where to start with regular expressions?

7
Comments
1 min read
loading...