Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
YouTube Video ID + URL validator
Verifies YouTube video links AND pulls the video ID from them in a matching group. Works with all capitalizations. It also matches the WHOLE link but sorts the video ID into a group. Works with JavaScript, PHP and Python. (Not tested with any other Regex engine) ...
Submitted by
Billy Venner
-
8 years ago
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
pcre
list of comma separated dates in the form dd/mm/yyy
matches a list of comma separated dates in the form dd/mm/yyy. Between two dates must be only a comma. no other character are permitted: matches: 12/03/2011,23/19/1967 Doesn't match: 23/02/2010, 11/11/2011
Submitted by
reario
-
8 years ago
-3
0 upvotes, 3 downvotes (0% like it) (You must be signed in to vote)
pcre
asdfasfdasdfasdffasdf
asdfasdfadfasddfasdfadsaf
Submitted by
afdsadsfasdfadsf
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Line parser (split at sentence)
Splits a line into three parts: completed sentences from the previous line, any complete sentences, and any uncompleted sentences.
Submitted by
E.Gu
-
8 years ago
12
13 upvotes, 1 downvotes (93% like it) (You must be signed in to vote)
pcre
MikroTik FireWall
Regex used in Splunk to extract fields from Mikrotik FW. NOTES: Mikrotik must be configured to use "BSD Syslog" format FW rules must add, as log prefix, the action: drop accep...
Submitted by
HappyIdeasMaker
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
File name
no description available
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
guto
gutoregex
Submitted by
guto
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
[php] url hard match
preg_math_all only. ex.: http://doman.com, http://doman.com/, http://doman.com/?query=1,http://doman.com?query=1, domain.com, doman.com?query=1 and other
Submitted by
Redfern.89
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
URL with ASP Cookieless SessionId
This matches a ASP Cookieless SessionId. Useful if, for example, after deprecating Cookieless sessions you want to redirect any clients with a cached sessionId to the plain url.
Submitted by
Zumey
-
8 years ago
1
5 upvotes, 4 downvotes (56% like it) (You must be signed in to vote)
pcre
Any telephone number with at least 6 digits
Telephone number can come with extra characters to denote country, region, etc
Submitted by
https://co.linkedin.com/in/andresfelipecardona
-
8 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Gentoo atom parsing
no description available
Submitted by
selurvedu
-
8 years ago
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
pcre
dropping first digit (2) andy advice?
\_\d(.+) for _2015041122
Submitted by
jbt
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
test
no description available
Submitted by
anonymous
-
8 years ago
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
pcre
Parsing the response of an oauth provider for token and session
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
year match
2010-2012
Submitted by
tazbir
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
decimal or not number
acepts 1.000 and 1000
Submitted by
jvs
-
8 years ago
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
pcre
Repeating Group
There are 2 segments within this data that start with REF* and end with a tilde (~). I can capture one of them but not both. I've read and cant seem to figure this one out. I DO need to preface with the NM1*03 piece.
Submitted by
Chris.
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
regex
no description available
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
yous
no description available
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Adyen reason when AUTHORISATION success
no description available
Submitted by
anonymous
-
8 years ago
1
...
529
530
531
532
533
534
535
...
571
image.ext check
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
^
(
.
*
)
(
\.
png
|
\.
jpg
|
\.
jpeg
|
\.
gif
)
$
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
dummy
- 8 years ago