Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 9,420 community submitted regex patterns...
-1
2 upvotes, 3 downvotes (score 11.8%) (You must be signed in to vote)
Match the ID on individual Vimeo URLs
PCRE (PHP <7.3)
no description available
Submitted by
Josh K
-
10 years ago
2013-09-08 13:04
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-09-07 21:02
4
14 upvotes, 10 downvotes (score 38.8%) (You must be signed in to vote)
Get stuff inside <a> tags
PCRE (PHP <7.3)
Get stuff inside tags, which are between certain words
Submitted by
Jerry
-
10 years ago
2013-09-07 18:19
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
Get inside single/double quotes
PCRE (PHP <7.3)
Get everything inside single/double quotes and ignoring escaped ones
Submitted by
Jerry
-
10 years ago
2013-09-07 18:18
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
SQL select columns
PCRE (PHP <7.3)
no description available
Submitted by
Phan
-
10 years ago
2013-09-07 13:09
-1
3 upvotes, 4 downvotes (score 15.8%) (You must be signed in to vote)
regex on paintkits
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-08-18 15:36
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
Basic Phone Number Verification
PCRE (PHP <7.3)
Verifies a phone number
Submitted by
anonymous
-
10 years ago
2013-08-15 21:40
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Parse DateTimes
PCRE (PHP <7.3)
Will parse a DateTime and group the results. Probably pretty limited but it works for me.
Submitted by
martin
-
10 years ago
2013-07-26 15:31
29
70 upvotes, 41 downvotes (score 53.8%) (You must be signed in to vote)
Wrap long string to spec length
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
10 years ago
2013-07-21 20:34
3
13 upvotes, 10 downvotes (score 36.8%) (You must be signed in to vote)
Prime number regex
PCRE (PHP <7.3)
no description available
Submitted by
originally "Abigail", comp.lang.perl.misc
-
10 years ago
2013-07-20 21:13
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
Twitter Hashtags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-07-20 19:30
-1
4 upvotes, 5 downvotes (score 18.9%) (You must be signed in to vote)
Twitter Hashtags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-07-20 19:30
3
65 upvotes, 62 downvotes (score 42.6%) (You must be signed in to vote)
Match quoted strings, ignoring escaped quotes
PCRE (PHP <7.3)
Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.
Submitted by
Maddingue
-
10 years ago
2013-06-26 14:28
5
9 upvotes, 4 downvotes (score 42.4%) (You must be signed in to vote)
Repair unquoted HTML attribute values
PCRE (PHP <7.3)
Usually MSWord HTML exports
Submitted by
Ka.
-
10 years ago
2013-06-21 16:45
8
23 upvotes, 15 downvotes (score 44.7%) (You must be signed in to vote)
Validate Base64 single-line string
PCRE (PHP <7.3)
no description available
Submitted by
ka.
-
10 years ago
2013-05-31 00:35
18
310 upvotes, 292 downvotes (score 52.3%) (You must be signed in to vote)
Date: DD-MM-YYYY hh:mm:ss
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE (PHP <7.3)
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
-
11 years ago
2013-05-17 13:07
0
7 upvotes, 7 downvotes (score 26.8%) (You must be signed in to vote)
DateTime: DD-MM-YYYY HH:mm:ss
PCRE (PHP <7.3)
Validate and Capture (in 1000-2999 range) Leap-Year Correct
Submitted by
anonymous
-
11 years ago
2013-05-13 23:26
-18
6 upvotes, 24 downvotes (score 9.5%) (You must be signed in to vote)
dd-mm-YYYY HH:mm:ss (year range 1000-2999)
PCRE (PHP <7.3)
Validate Gregorian calendar dates that contain 24-hour times. This will also correctly match the Feb 29 date when it falls on a valid leap year. Leap years occur every 4 years, with one exception: when a year is evenly divisible by 100 but not evenly divisible by 400, the year will not be a leap ye...
Submitted by
Ka.
-
11 years ago
2013-05-13 22:48
(Last modified 4 months ago)
2023-07-24 16:28
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
js function test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
2013-04-09 03:26
4
5 upvotes, 1 downvotes (score 43.6%) (You must be signed in to vote)
1st TSV
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
11 years ago
2013-04-08 22:00
1
...
467
468
469
470
471
dropping first digit (2) andy advice?
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
\_
\d
(
.
+
)
/
Open regex in editor
Description
Loading markdown...
Submitted by
jbt
-
9 years ago
2015-05-28 16:43