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
Highest Score
Lowest Score
Most upvotes
Most downvotes
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,680 community submitted regex patterns...
2
regex101: RFC1918 Private IPv4 Addresses, but limited to matching /24 subnet host IDs
PCRE2 (PHP >=7.3)
POSIX ERE compatible, suitable for usage in Bash [ testing Attributions Derived from [regex101: RFC1918 - Private IPv4 addresses by 0100101101001.
Submitted by
anonymous
-
a year ago
2
ROM naming scheme
PCRE2 (PHP >=7.3)
this is some cursed shit, but it does work. I use it to check whether all my ROMs have valid names or not. Makes it easier to read and, more importantly, deduplicate.
Submitted by
Riedler
-
4 months ago
(Last modified 4 months ago)
2
RFC822 Date Format
PCRE2 (PHP >=7.3)
Test your RSS pubDate has a correctly formatted date value according to the RFC822 standard It will match timeZoneName (eg GMT, EST) or time zone offset (eg. +0100)
Submitted by
anonymous
-
4 months ago
(Last modified 4 months ago)
2
Journalctl
PCRE2 (PHP >=7.3)
This was build on gentoo with english_ca.utf8 IIRC. Might not work for other distros... or locales supports -as the delimiter of hostname suffixing/prefixing
Submitted by
Wolf1098
-
4 months ago
2
Parse Excel CSV data
PCRE2 (PHP >=7.3)
This is the best regex I found that was able to correctly parse cells containing multiple lines (hard line breaks). Low number of steps with sufficient speed, and it doesn't require /x option either. Source: https://gist.github.com/awwsmm/886ac0ce0cef517ad7092915f708175f
Submitted by
thdoan
-
4 months ago
(Last modified 4 months ago)
2
unicode
PCRE2 (PHP >=7.3)
uncode word boundaries
Submitted by
Mehmet Kozan
-
4 months ago
2
Test 1 solution
PCRE2 (PHP >=7.3)
thanks
Submitted by
Zeeble Dorp
-
3 months ago
2
\tilde \alpha
PCRE2 (PHP >=7.3)
\tilde \alpha
Submitted by
anonymous
-
3 months ago
2
tst
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
2 months ago
2
Task 4 Quiz
PCRE2 (PHP >=7.3)
It needs a major modification, since matching an integer is required. The accepted answer \d+ involves only "positive" integers. But -333 or +777 are also integers, which leads to two possible solutions with the last one being the most accurate: -?\d+ : The hyphen (optional minus sign) and a digit ...
Submitted by
seQuienSoy
-
2 years 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
-
a year ago
1
Test expression
PCRE2 (PHP >=7.3)
To find at most 3 a in string
Submitted by
anonymous
-
3 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
-
3 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
-
2 years ago
1
Exponential Value Identification
PCRE2 (PHP >=7.3)
Exponential Value Identification
Submitted by
Nimit Bhagat
-
2 months 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
-
7 years ago
(Last modified a year ago)
1
Regular expression for parsing VK.com links.
PCRE2 (PHP >=7.3)
no description available
Submitted by
ZKelo
-
5 years ago
(Last modified 2 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
-
4 years ago
(Last modified 4 years ago)
1
Custom IFrame SRC Grabber
PCRE2 (PHP >=7.3)
no description available
Submitted by
Moep
-
4 years ago
(Last modified 4 years ago)
1
验证金额 "-999999999.99 ~ 999999999.99" ,小数点保留2位
PCRE2 (PHP >=7.3)
验证阿拉伯数字金额 "-999999999 ~ 999999999" ,小数点后面保留2位
Submitted by
cp.l
-
4 years ago
1
2
3
4
5
...
134
Krist name or address
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^
k
[
a
-
z0
-
9
]
{9}
$
|
^
(?:
(
[
a
-
z0
-
9-_
]
{1,32}
)
@
)?
(
[
a
-
z0
-
9
]
{1,64}
)
.
kst
$
/
gmi
Open regex in editor
Description
Krist
name or address regex, where names also support metanames.
Source 1
Source 2
Submitted by
anonymous
-
4 months ago