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 2,860 community submitted regex patterns...
2
X-Trim (All-in-One Trimmer - Space Sanitizer)
PCRE2 (PHP >=7.3)
Regex Pattern ^\s+|\s+$|(\s)\s+ Replacement $1 ...
Submitted by
Fernando Abritta
-
8 months ago
2
Discord Username (old & new)
PCRE2 (PHP >=7.3)
Accomodate for Discord's username changeover and match against either the old username or the new username. But only one or the other. Match: CesarHvl#9000 cesarhvl cesar.hvl...
Submitted by
cesarhvl
-
2 years ago
1
identify duplicate consecutive words + word combinations to remove
PCRE2 (PHP >=7.3)
Identifies duplicate word and word combinations that exist consecutively within a string for removal. It is currently configured for up to 3 consecutive words but can be extended by adding additional (\s+\w)* to the first groups pattern match logic use with substitution val $1 good for removing d...
Submitted by
GrantO
-
4 years ago
1
Test expression
PCRE2 (PHP >=7.3)
To find at most 3 a in string
Submitted by
anonymous
-
4 years ago
1
PHP North American Phone Number
PCRE2 (PHP >=7.3)
Format phone numbers to look nice! E.g. 12345678900 --> +1(234)-567-8900 Matches with most ways numbers are stored 1.234.567.8900 1 234 567 8900...
Submitted by
Mendel Groner
-
4 years ago
1
UUID 4
PCRE2 (PHP >=7.3)
Detects any UUID 4 strings
Submitted by
ShadowNox
-
4 years ago
1
Password - mot de passe
PCRE2 (PHP >=7.3)
1 caractère minuscule minimum 1 caractère majuscule minimum 1 chiffre minimum 1 caractère spécial minimum pas d'espace 8 caractères minimum en tout
Submitted by
Sofiane
-
3 years ago
1
Test 1 solution
PCRE2 (PHP >=7.3)
thanks
Submitted by
Zeeble Dorp
-
a year ago
1
Exponential Value Identification
PCRE2 (PHP >=7.3)
Exponential Value Identification
Submitted by
Nimit Bhagat
-
a year ago
1
Quiz_12_Match_Any_Number_Between_0-100
PCRE2 (PHP >=7.3)
Could you help me validate my input and only match positive integers between the range of 0 and 100? There can be several numbers in a string which I would want to retrieve. Try out these example strings: ...
Submitted by
anonymous
-
a year ago
1
scam_19
PCRE2 (PHP >=7.3)
Use substitution to put commas in all numbers to separate the thousands. ie: 12345678 → 12,345,678. The number could be in a sentence, and there may be more than one number in the sentence.
Submitted by
anonymous
-
a year ago
1
Word Wrap examples
PCRE2 (PHP >=7.3)
Four examples of word wrapping at the 80 character mark, each one taking fewer steps than the last. Comment and uncomment lines with # to see the difference between versions. Optimization discussions welcome!
Submitted by
OnlineCop
-
8 years ago
(Last modified 2 years ago)
1
Regular expression for parsing VK.com links.
PCRE2 (PHP >=7.3)
no description available
Submitted by
ZKelo
-
6 years ago
(Last modified 3 years ago)
1
PHP Class Capture Groups from symbol string for Class, Namespace, Operation (Mutator or Accessor), Target and Method Names
PCRE2 (PHP >=7.3)
The is helpful for parsing the symbolic reference of a PHP class object for validation or just determining the type and target for the operator. The expression is intended for working with classes and class methods, so the value on the right of the Paamayim Nekudotayim :: will alway be regarded as ...
Submitted by
Jacob Canote
-
5 years ago
(Last modified 5 years ago)
1
Custom IFrame SRC Grabber
PCRE2 (PHP >=7.3)
no description available
Submitted by
Moep
-
5 years ago
(Last modified 5 years ago)
1
验证金额 "-999999999.99 ~ 999999999.99" ,小数点保留2位
PCRE2 (PHP >=7.3)
验证阿拉伯数字金额 "-999999999 ~ 999999999" ,小数点后面保留2位
Submitted by
cp.l
-
5 years ago
1
StrongPassword: 1 uppercase, 1 lower case, 1 num, 1 \W, & at least 8 char
PCRE2 (PHP >=7.3)
no description available
Submitted by
Bri Baldwin
-
5 years ago
1
MyRegEx
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Dutch mobile phone number
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Gitlab GraphQl query finder
PCRE2 (PHP >=7.3)
Searches for the first list element in a graphql query, which allows for filtering and pagination, except for the group node
Submitted by
Thomas Luijken
-
5 years ago
1
2
3
4
5
6
...
143