Regular
Expressions
101
@regex101
Follow me on twitter!
Donate
Like regex101? Support it by donating!
Sponsor
Become a sponsor!
Contact
Send me an email
Bug Reports & Feedback
Bugs or suggestions go here
Wiki
Wiki (Info & FAQ)
Whats new?
Whats new?
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Consider a donation
Consider a donation
Become a sponsor
Become a sponsor
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2 (PHP >= 7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Sponsor
Jamstack at Scale
Library entries
Search library
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
6 hours ago
get first number from string
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
vHeemstra
-
9 hours ago
LDraw valid numbers and invalid formats capture
Regex to match the valid and preferred number formats inside a LDraw model file and capture invalid parts in the formatting. Syntax rules: White spacing characters must be spaces, tabs or a mix of both. These numbers must be separated by one or more white spacing characters....
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
16 hours ago
ReName_01_
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
anonymous
-
17 hours ago
How to match all text between two strings multiline
How to match all text between two strings multiline
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
19 hours ago
6 digit Sort Code without dashes
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Submitted by
anonymous
-
21 hours ago
Question 2
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
anonymous
-
a day ago
CODA download log
no description available
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
a day ago
Dutch streetnames + housenumber + extension
Validates a streetname + housenr + extension Somestreet 12 b
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
Dup words
no description available
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
Dutch zipcodes
no description available
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
Dutch mobile phone number
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
anonymous
-
2 days ago
Url regex
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
anonymous
-
2 days ago
aaa
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
anonymous
-
2 days ago
ATNALogSIEMUseCasesPurposeOfUseESClocal
Nur PurposeOfUse aus ATNA Log auswerten, in Kombination mit ATNALogSIEMUseCaseESC
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
Aplayer Icons Regex
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
cisco command
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
Habibi Mustafa
-
2 days ago
Minify HTML
Remove Whitespace Remove Comment
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
get main content if has :
no description available
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
Gecko Pico
-
2 days ago
MongoDB connection string has username and password
Test if a mongo db connection string has a username and password declared in it. Doesn't work with with multi host ATM
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Submitted by
anonymous
-
2 days ago
conditional phone numbers
no description available
1
2
3
4
...
668
search input parsing for ccg database
Regular Expression
pcre2
/
(?:
^
(
[
A
-
Y
]
)?
\s
*
(
\d
{0,4}
)
\s
?
(
[
a
-
d
]
)?
)
|
(?:
^
(
(?:
\w
+
)
|
(?:
\w
+
,
)
|
(?:
\w
+
,
\w
*
)
)?
\s
*
(
(?:
&
{1,2}
|
and
|
or
|
\|
{2}
)
\s
+
(?:
.
*
)*
)*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 3 days ago
Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.