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.
Decoding Regex Hieroglyphs

Decoding Regex Hieroglyphs

38
Comments
5 min read
Parse user input for urls, timestamps & hashtags with RegEX 🧠

Parse user input for urls, timestamps & hashtags with RegEX 🧠

55
Comments 3
6 min read
Regex Bootcamp (or Nobody Seems to be Using HTML5 Validation)

Regex Bootcamp (or Nobody Seems to be Using HTML5 Validation)

41
Comments 5
4 min read
Regex solution

Regex solution

8
Comments 4
1 min read
Writing a Regular Expression to Target Images Without a Class

Writing a Regular Expression to Target Images Without a Class

8
Comments
5 min read
Regex tools

Regex tools

41
Comments 4
1 min read
How to create your instant form validation

How to create your instant form validation

12
Comments 2
6 min read
Regex…

Regex…

11
Comments 3
2 min read
Hello... RegExp!?

Hello... RegExp!?

9
Comments
8 min read
The more-proper introduction to ReX.js

The more-proper introduction to ReX.js

11
Comments
2 min read
Getting the Gist of Java

Getting the Gist of Java

15
Comments
5 min read
How are regex used in the real world?

How are regex used in the real world?

6
Comments 8
1 min read
Adventures in Regular Expressions

Adventures in Regular Expressions

9
Comments
5 min read
The Power of Regular Expressions

The Power of Regular Expressions

46
Comments 10
15 min read
Refrex! Capture and non-capture groups in ES2018

Refrex! Capture and non-capture groups in ES2018

69
Comments 4
5 min read
Javascript lookaheads and lookbehinds

Javascript lookaheads and lookbehinds

38
Comments 3
2 min read
VerbalExpressions - RegularExpression made easy

VerbalExpressions - RegularExpression made easy

337
Comments 36
1 min read
Exercise: Making a Simple Regex Engine

Exercise: Making a Simple Regex Engine

48
Comments 3
4 min read
Regex Blah

Regex Blah

32
Comments 3
4 min read
Find, convert and replace dates with Vim substitutions

Find, convert and replace dates with Vim substitutions

17
Comments 3
6 min read
My RegExp nightmare

My RegExp nightmare

28
Comments 27
1 min read
Snake case to camel case and back using regular expressions and Python

Snake case to camel case and back using regular expressions and Python

36
Comments 3
2 min read
My Regex Cheatsheet - 25 Example Regex Rules

My Regex Cheatsheet - 25 Example Regex Rules

142
Comments 7
2 min read
Regular expressions: how do they work?

Regular expressions: how do they work?

242
Comments 7
9 min read
JavaScripts Regular Expressions Get More Power

JavaScripts Regular Expressions Get More Power

27
Comments 4
2 min read
TIL: Match unicode letters in regex

TIL: Match unicode letters in regex

15
Comments
2 min read
Exploring the Linguistics Behind Regular Expressions

Exploring the Linguistics Behind Regular Expressions

149
Comments 24
10 min read
getting regex in a quick way

getting regex in a quick way

6
Comments
1 min read
What are your code smells and/or best practices with regular expressions?

What are your code smells and/or best practices with regular expressions?

18
Comments 24
1 min read
Learn Regular Expressions using Atom

Learn Regular Expressions using Atom

18
Comments 2
2 min read
Remove all console.log()s using Regex in Atom

Remove all console.log()s using Regex in Atom

10
Comments 20
1 min read
The beauty of VerbalExpressions

The beauty of VerbalExpressions

87
Comments 18
1 min read
Java REGEX based scanner

Java REGEX based scanner

6
Comments
2 min read
How To Build A RegEx

How To Build A RegEx

18
Comments 1
5 min read
My favourite computer science text (OR "how regex works")

My favourite computer science text (OR "how regex works")

3
Comments 2
2 min read
Getting started with Regex

Getting started with Regex

10
Comments 1
2 min read
Tutorial: Building a Slack Bot that Writes Custom Queries against your Database

Tutorial: Building a Slack Bot that Writes Custom Queries against your Database

6
Comments
3 min read
Finding Null or Empty String Checks in Java

Finding Null or Empty String Checks in Java

8
Comments 2
2 min read
Intro to what Regex does (simple code example and resources)

Intro to what Regex does (simple code example and resources)

2
Comments
3 min read
Intro to peg.js

Intro to peg.js

6
Comments 3
5 min read
(Don't Fear) The Regex: A Practical Introduction to Regular Expressions

(Don't Fear) The Regex: A Practical Introduction to Regular Expressions

56
Comments 6
8 min read
Javascript: When Less is More

Javascript: When Less is More

33
Comments 1
4 min read
Don't Be Afraid of Regular Expressions

Don't Be Afraid of Regular Expressions

5
Comments 2
6 min read
Using Regex to Prevent User-Error during E-commerce Site-Content Turnovers

Using Regex to Prevent User-Error during E-commerce Site-Content Turnovers

6
Comments
2 min read
TIL: Unicode chars in regex

TIL: Unicode chars in regex

17
Comments
1 min read
Day 2: Java Validation

Day 2: Java Validation

9
Comments
2 min read
Basic RegExp in JS

Basic RegExp in JS

8
Comments 1
2 min read
Why I Default to The Old Ways

Why I Default to The Old Ways

7
Comments 4
2 min read
Removing Short Imports in NativeScript, the Easy Way (with VS Code)

Removing Short Imports in NativeScript, the Easy Way (with VS Code)

7
Comments
4 min read
Laravel enforcing strict passwords with Regex

Laravel enforcing strict passwords with Regex

4
Comments
1 min read
I ain't afraid of no regex

I ain't afraid of no regex

5
Comments 2
3 min read
RegEx Necessities Part 1

RegEx Necessities Part 1

6
Comments
5 min read
Cool Regex performance hack for "not preceded with"

Cool Regex performance hack for "not preceded with"

7
Comments
3 min read
FileSearching With Python

FileSearching With Python

7
Comments
1 min read
Form Validation, You're Doing it Wrong, Part Two

Form Validation, You're Doing it Wrong, Part Two

11
Comments
2 min read
2 Interactive Resources for Brushing Up Your RegEx Knowledge

2 Interactive Resources for Brushing Up Your RegEx Knowledge

3
Comments
3 min read
Learning regex with doggos

Learning regex with doggos

5
Comments
5 min read
Learning to Love RegEx: a Find and Replace example

Learning to Love RegEx: a Find and Replace example

9
Comments
2 min read
Regular expressions Tutorial For Linux

Regular expressions Tutorial For Linux

9
Comments
1 min read
RegEx match all words with a prefix

RegEx match all words with a prefix

3
Comments
1 min read
loading...