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.
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

7
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)

9
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

7
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

12
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)

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

Regex Cheat Sheet (Javascript Edition)

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

Fun with C# Regex based Expression calculator

7
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
Refactoring Ruby with Regex

Refactoring Ruby with Regex

6
Comments 2
4 min read
Regex - underrated or overHATED? Part 2/3

Regex - underrated or overHATED? Part 2/3

8
Comments
4 min read
Let's stop using [a-zA-Z]+

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

82
Comments 6
2 min read
Time to start learning how to regex

Time to start learning how to regex

2
Comments
2 min read
Regex - underrated or overHATED? Part 1/ 3

Regex - underrated or overHATED? Part 1/ 3

17
Comments 2
9 min read
Regex for Date, Time and Currency, with Code Examples

Regex for Date, Time and Currency, with Code Examples

10
Comments
3 min read
Thoughts, quotes and thoughts about regex

Thoughts, quotes and thoughts about regex

5
Comments 3
3 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
Introduction to Regular Expressions

Introduction to Regular Expressions

21
Comments 5
2 min read
Natural Language v. Regex: The Context Wars

Natural Language v. Regex: The Context Wars

3
Comments
5 min read
Use RegEx to split a string in Javascript (preserving separators) | Notes

Use RegEx to split a string in Javascript (preserving separators) | Notes

3
Comments
1 min read
Regex basics with explanations and examples

Regex basics with explanations and examples

36
Comments
4 min read
A Regular Expression to filter invalid names | Notes

A Regular Expression to filter invalid names | Notes

3
Comments
2 min read
Regular Expressions (Regex) Tutorial

Regular Expressions (Regex) Tutorial

2
Comments
1 min read
Using matches & regex in Twig!

Using matches & regex in Twig!

3
Comments 1
1 min read
loading...