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,000 community submitted regex patterns...
0
time input
PCRE (PHP <7.3)
following input formats work-- 10am to 3pm 1am - 2pm 12pm-3pm
Submitted by
anonymous
-
9 years ago
0
Date Groupings
Python
no description available
Submitted by
flipkitty
-
9 years ago
0
WOrd with colon
ECMAScript (JavaScript)
no description available
Submitted by
HJ
-
9 years ago
0
Phone Number Extraction
PCRE (PHP <7.3)
US numbers only
Submitted by
codedude
-
9 years ago
0
phone valid
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Phone numbers
PCRE (PHP <7.3)
PHP
Submitted by
anonymous
-
9 years ago
0
Phone validate
ECMAScript (JavaScript)
Validate Phone number even if contain country code
Submitted by
Jorge Cervantes
-
9 years ago
0
Facebook url regex
PCRE (PHP <7.3)
no description available
Submitted by
Devs Devaras
-
9 years ago
0
add colon between hours and minutes to time (24h system)
PCRE (PHP <7.3)
This expression converts any 3- or 4 digit timevalue to a value with colon between hours and minutes. So 345 is converted to 3:45 and 1500 is converted to 15:00
Submitted by
Patrick Sinke
-
9 years ago
0
Nickname
PCRE (PHP <7.3)
Nickname validation. Only: letters _ One line. Tested with RoR
Submitted by
Paramoshkin Andrew
-
9 years ago
0
Match HTTP error code
Python
no description available
Submitted by
anonymous
-
9 years ago
0
url and path match with or without http|https
PCRE (PHP <7.3)
this is the most perfect pattern I reach for url with query or anchor
Submitted by
Gehad Mohamed
-
9 years ago
0
Registration Email Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
IP V4 with leading zero values
PCRE (PHP <7.3)
no description available
Submitted by
shA.t
-
9 years ago
0
SQL: insert into
PCRE (PHP <7.3)
insert[\s]+into[\s]+\([\s](?.?)[\s]\)[\s]+values[\s]+\((?.?)[\s]*\);
Submitted by
suat erenler
-
9 years ago
0
Remove XML-Style Comments (JavaScript)
ECMAScript (JavaScript)
Exist a problem with simple regex in JS Solution from: https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch09s10.html
Submitted by
Arkadiusz Sawicz
-
9 years ago
0
Match_Between_Nth_And_Nth+1_Occurence_Of_Character_Square_Brackets
ECMAScript (JavaScript)
no description available
Submitted by
Connor Goddard
-
9 years ago
0
negative lookbehind
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Match links in html
PCRE (PHP <7.3)
Matches all from
Submitted by
anonymous
-
9 years ago
0
DateTime: yyyy-M-d-HH-mm-ss (.NET)
PCRE (PHP <7.3)
Validates DateTime in format 'yyyy-M-d-HH-mm-ss'(.NET) in mind with possible zeros, minimal values, maximal values and infinite year
Submitted by
CryoCZ
-
9 years ago
1
...
340
341
342
343
344
...
900
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
\(
(
[^
)
]
+
)
\)
|
\[\[
(
[^
]
]
+
)
\]\]
|
\[
(
[^
]
]
+
)
\]
|
Learn
more:
(
.
*
)
|
â
µ
|
---
|
\b\d
+
\.
\s
*
|
\s
{2,}
|
\s
*
\n
{2,}
|
\{
\d
+
\}
)
\s
*
/
gm
Open regex in editor
Description
I don't know why but this probably sucks, it even detects spaces for some reason.
Submitted by
Noicc in discord.
-
10 months ago