Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,280 community submitted regex patterns...
1
Simple CSS Selector parser
ECMAScript (JavaScript)
Basic Regex for CSS Selector. Pseudo-Elements, Combinators and other advanced stuff are not supported.
Submitted by
anonymous
-
8 days ago
(Last modified 8 days ago)
1
HP Prime
PCRE2 (PHP >=7.3)
Extracts HP Prime PPL numbers.
Submitted by
anonymous
-
9 days ago
(Last modified 9 days ago)
1
Strings
PCRE2 (PHP >=7.3)
Extracting strings defined in languages like C/C++ etc.
Submitted by
Insoft
-
9 days ago
(Last modified 9 days ago)
1
1
Python
554
Submitted by
anonymous
-
11 days ago
1
U.S. Phone Number
PCRE2 (PHP >=7.3)
Format validation for U.S. phone numbers with or without a country code and with various formatting and punctuation permissible.
Submitted by
Nick
-
15 days ago
1
AoC 2025 Day 5
Python
AoC 2025 Day 5 part 1 but also works for part 2. You just don't need the IDs at the bottom for part 2
Submitted by
anonymous
-
19 days ago
1
Telephone validation regex - handles international codes, extensions, and formatting gracefully
PCRE2 (PHP >=7.3)
Search string for use in contact cleaning project $1 = intenational code, omitting preceding "+" $2 = area code $3 = first three digits of phone number $4 = last four digits of phone $5 = extension, inclusive of any commas or hashes to automate phone tree navigation...
Submitted by
Jason
-
19 days ago
1
Changes Log Tag verify for Languages Code sub-versioning
PCRE2 (PHP >=7.3)
Search for the occurence of the 3 following words: CHA, LOG and TAG. Should be in the above order sequence (but it also if works swapped).
Submitted by
XrosaXasorX
-
21 days ago
1
Asw
PCRE (PHP <7.3)
``/^(?P0|1-9]\d)\.(?P0|[1-9]\d)\.(?P0|[1-9]\d)(?:-(?P(?:0|[1-9]\d|\d[a-zA-Z-)(?:\.(?:0|1-9]\d|\d[a-zA-Z-))))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gmsAD
Submitted by
anonymous
-
22 days ago
1
DoubleQuote Enclosed CSV Field with Escaped DoubleQuote
PCRE2 (PHP >=7.3)
Extract field value of DoubleQuote Enclosed CSV Field with Escaped DoubleQuote The matching field value still contains escaped double quotes to be later processed :-)
Submitted by
Alper YAZGAN
-
a month ago
1
test
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
a month ago
1
Text in between HTML tags and inside quotation marks within HTML tags
ECMAScript (JavaScript)
Overview This Regular Expression shows any text between HTML tags or between quotation marks within the tags themselves. An example would be: <HTML lang="en", then selecting the 'en' from there. Group 1 is between tags, and group 2 is in the quotes. I recommend only using half of this regular expres...
Submitted by
daniel@sabian.pro
-
a month ago
1
Deucesanother
PCRE (PHP <7.3)
Fixwithpecra
Submitted by
Deuces9ers
-
a month ago
1
001
PCRE2 (PHP >=7.3)
for Problem 2 - Fancy Barcodes
Submitted by
anonymous
-
a month ago
1
Regex for MusicBrainz Picard Plugin – Title Cleaner OST
Python
One of the regular expressions I use for my plugin Title Cleaner OST.
Submitted by
nrth3rnlb
-
a month ago
(Last modified a month ago)
1
souly2
PCRE2 (PHP >=7.3)
import React, { useState } from 'react'; // Example characters array as props for demonstration const charactersData = [ { name: 'Gandalf', isWizard: true }, { name: 'Harry', isWizard: true },...
Submitted by
anonymous
-
a month ago
1
souly
PCRE2 (PHP >=7.3)
für julian <3
Submitted by
anonymous
-
a month ago
1
zweckfreibaum
PCRE2 (PHP >=7.3)
d
Submitted by
anonymous
-
a month ago
1
zweckfreibaum08
PCRE2 (PHP >=7.3)
08
Submitted by
anonymous
-
a month ago
1
Zwechfreibaum
PCRE2 (PHP >=7.3)
Leben
Submitted by
anonymous
-
a month ago
1
2
3
...
914