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.
Venha expressar regulamente conosco?

Venha expressar regulamente conosco?

6
Comments
2 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
Capturing group misconception in Regex

Capturing group misconception in Regex

1
Comments
2 min read
13 reasons why you should not use Perl

13 reasons why you should not use Perl

5
Comments 15
4 min read
Check for a Tic Tac Toe winner with Regular Expressions

Check for a Tic Tac Toe winner with Regular Expressions

3
Comments 1
3 min read
.Net 5 Regex Performance

.Net 5 Regex Performance

5
Comments
3 min read
JS practice: day2 - password decoder

JS practice: day2 - password decoder

3
Comments
1 min read
Introduction to RegEx

Introduction to RegEx

5
Comments
9 min read
Yup Schema for Nigeria Phone Mobile Number

Yup Schema for Nigeria Phone Mobile Number

4
Comments 1
1 min read
Create Phone Number using JS , Codewars Solution

Create Phone Number using JS , Codewars Solution

6
Comments
1 min read
String Patterns in TypeScript

String Patterns in TypeScript

5
Comments
1 min read
Regex: Parsing usernames from Twitter, Facebook, and Instagram

Regex: Parsing usernames from Twitter, Facebook, and Instagram

6
Comments
2 min read
Regex 101 - Kill the Monster

Regex 101 - Kill the Monster

4
Comments
4 min read
MongoDB equivalent of SQL LIKE query

MongoDB equivalent of SQL LIKE query

5
Comments
1 min read
Remove Space/Empty New Line on VSCode with Regex

Remove Space/Empty New Line on VSCode with Regex

2
Comments 2
1 min read
Balancing Clarity, Elegance, and Risk in Regular Expressions

Balancing Clarity, Elegance, and Risk in Regular Expressions

2
Comments
17 min read
Snippets in JavaScript: Converting PascalCase to kebab-case // Integrating with ShadowDOM

Snippets in JavaScript: Converting PascalCase to kebab-case // Integrating with ShadowDOM

6
Comments
4 min read
Where to put regular expression checks?

Where to put regular expression checks?

1
Comments
1 min read
Format parser for Prettier and ESLint

Format parser for Prettier and ESLint

3
Comments
2 min read
Clean Code Studio Software Resources (Regex)

Clean Code Studio Software Resources (Regex)

11
Comments 1
2 min read
Regular Expressions for Non-Programmers.

Regular Expressions for Non-Programmers.

3
Comments
5 min read
Getting Started with Regular Expressions

Getting Started with Regular Expressions

121
Comments 15
4 min read
How to Build a RegEx Engine in Python (Part 3: TDRDP)

How to Build a RegEx Engine in Python (Part 3: TDRDP)

1
Comments
4 min read
Regular expressions in Rust

Regular expressions in Rust

6
Comments 1
4 min read
Rust: Lazy Static Regex

Rust: Lazy Static Regex

5
Comments
5 min read
Regex Cheat Sheet

Regex Cheat Sheet

22
Comments
13 min read
Snippet: Grab lat/lon from Google Maps URL

Snippet: Grab lat/lon from Google Maps URL

2
Comments
1 min read
Keeping code simple with regular expressions

Keeping code simple with regular expressions

7
Comments
5 min read
Regular Expression for match empty string

Regular Expression for match empty string

6
Comments
1 min read
How to Build a RegEx Engine in Python (Part 2.1: Python strings)

How to Build a RegEx Engine in Python (Part 2.1: Python strings)

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

Introducing Regcode - Create Regular Expressions Easily with Code

22
Comments 7
3 min read
Kotlin Pure Regex Routing Logic

Kotlin Pure Regex Routing Logic

6
Comments
2 min read
Make your own Markdown Converter (with new Features) - Part 1

Make your own Markdown Converter (with new Features) - Part 1

6
Comments
2 min read
How to Build a RegEx Engine in Python (Part 1: The Grammar)

How to Build a RegEx Engine in Python (Part 1: The Grammar)

11
Comments
3 min read
How to Build a RegEx Engine in Python (Part 2: The Lexer)

How to Build a RegEx Engine in Python (Part 2: The Lexer)

8
Comments
4 min read
Do you find regexes complex?

Do you find regexes complex?

16
Comments
4 min read
Comprehensive Guide for not so Regular Expressions

Comprehensive Guide for not so Regular Expressions

15
Comments
7 min read
Regex: Fix duplicate slashes without affecting protocol

Regex: Fix duplicate slashes without affecting protocol

9
Comments 2
1 min read
How to Detect Symbols & spaces With RegEx!

How to Detect Symbols & spaces With RegEx!

5
Comments 1
1 min read
Flags in Regular Expression

Flags in Regular Expression

2
Comments
1 min read
Special characters in Regular Expression

Special characters in Regular Expression

2
Comments
2 min read
Primer on Regexes

Primer on Regexes

7
Comments
6 min read
preg_replace_callback for Javascript

preg_replace_callback for Javascript

3
Comments
1 min read
Writing an effective GROK pattern

Writing an effective GROK pattern

5
Comments
3 min read
Can I get a dash of regular expression in my KQL?

Can I get a dash of regular expression in my KQL?

7
Comments
1 min read
Looking at Regex in Rust (Addendum)

Looking at Regex in Rust (Addendum)

9
Comments
4 min read
Regex for Verifying Email Address

Regex for Verifying Email Address

5
Comments 1
3 min read
Accurately Judge Data Types by Using Regex

Accurately Judge Data Types by Using Regex

5
Comments
1 min read
Looking at Regex in Rust

Looking at Regex in Rust

9
Comments
3 min read
When I prefer not to use Regex ⛞

When I prefer not to use Regex ⛞

5
Comments
4 min read
Multiline flag in regex

Multiline flag in regex

5
Comments
1 min read
Regex for email validation in rails

Regex for email validation in rails

7
Comments 2
1 min read
A python regex to validate roman numerals

A python regex to validate roman numerals

9
Comments 6
4 min read
Regex? The Minimum You Need To Know.

Regex? The Minimum You Need To Know.

11
Comments
5 min read
15 expresiones regulares que te ahorrarán dolores de cabeza como Junior (y Senior)

15 expresiones regulares que te ahorrarán dolores de cabeza como Junior (y Senior)

12
Comments
9 min read
Regex Cheat Sheet (Javascript Edition)

Regex Cheat Sheet (Javascript Edition)

10
Comments
2 min read
Fun with C# Regex based Expression calculator

Fun with C# Regex based Expression calculator

5
Comments
4 min read
Utiliser les expressions régulières pour effectuer des recherches et remplacements en JavaScript

Utiliser les expressions régulières pour effectuer des recherches et remplacements en JavaScript

6
Comments
6 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
Parse Name and Address: Regex vs NER, with Code Examples

Parse Name and Address: Regex vs NER, with Code Examples

9
Comments
4 min read
loading...