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
Shorten Names: Use the positive lookahead ?= to match groups of that represent last names and first letters of the first name.
PCRE (PHP <7.3)
no description available
Submitted by
mglezsauri@hotmail.com
-
8 years ago
0
Lab2-1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
exclude sub path names
PCRE (PHP <7.3)
helper rule for: to combine black and whitelist expressions this one acts as blacklist
Submitted by
anonymous
-
8 years ago
0
get folder from link
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Filename from path
PCRE (PHP <7.3)
sample string /shared/logs/NONPR/btlp006249/wls/8.1/P/logs/applications/usageMeter-webservice-1.0.log
Submitted by
anonymous
-
8 years ago
0
Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Twitter Lat/Lon Coordinate Extraction
PCRE (PHP <7.3)
This extracts latitude and longitude from a Tweet pulled through the public API.
Submitted by
Ed Fullman
-
8 years ago
0
Extract Twitter Hashtags
PCRE (PHP <7.3)
This regular expression extracts hashtags from the raw data.
Submitted by
anonymous
-
8 years ago
0
Twitter Hashtag Extraction
PCRE (PHP <7.3)
Extracts the latitude and longitude from the raw data.
Submitted by
anonymous
-
8 years ago
0
Extract Lat/Lon Baltimore Crime Data
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Extract Fields from Messages.app Selected Chat
PCRE (PHP <7.3)
Use AppleScript to get the Chat Description from the selected Chat. That is the source text for this RegEx. This RegEx extracts the following fields: • Buddy Name (or Phone# or Ref# if Buddy is NOT a Contact) • Last Message...
Submitted by
JMichaelTX
-
8 years ago
0
iTunes Library file names for TV Shows convert to Infuse like style
PCRE (PHP <7.3)
Extract from iTunes TV Show file name season and episode numbers and episode name and convert to Infuse style. 3-01 Wait for It.mp4 => How I Met Your Mother S3E01 Wait for It.mp4
Submitted by
anonymous
-
8 years ago
0
Shorten Names:Find all the words in a string that start with a specific character.
PCRE (PHP <7.3)
Find all the words in a string that start with a specific character.
Submitted by
mglezsauri@gmail.com
-
8 years ago
0
Date3
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
FontAwesome CheatSheet to Array
PCRE (PHP <7.3)
Clean and convert FontAwesome CheatShee into array with "class" name and "unicode" code. Copy cheatsheet from FontAwesome CheatShee and paste on "test string".
Submitted by
Mirdani Handoko
-
8 years ago
0
work
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
FunAndRace - Check Old Category Url
PCRE (PHP <7.3)
no description available
Submitted by
jordan
-
8 years ago
0
Maximo ME
PCRE (PHP <7.3)
https://regex101.com/r/qCvqMo/1
Submitted by
anonymous
-
8 years ago
0
class names within a certain folder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Datum
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
19
20
21
22
23
...
900
Community Library Entry
1
Regular Expression
Python
r"
\b
(?P<date>
(?P<day>
(?:
(?:
0
[
1
-
9
]
|
[
12
]
\d
|
30
)
(?=
[
-
:
\.\/
]
(?:
04
|
06
|
09
|
11
))
)
|
(?:
(?:
0
[
1
-
9
]
|
[
12
]
\d
|
3
[
01
]
)
(?=
[
-
:
\.\/
]
(?:
01
|
03
|
05
|
07
|
08
|
10
|
12
))
)
|
(?:
(?:
0
[
1
-
9
]
|
[
12
]
\d
)
(?=
[
-
:
\.\/
]
02
[
-
:
\.\/
]
\d\d
(?:(
[
02468
]
[
048
]
)|
(
[
13579
]
[
26
]
)))
(?!
[
-
:
\.\/
]
02
[
-
:
\.\/
]
(?:(
[
2468
]
[
1235679
]
)|
(
[
13579
]
[
01345789
]
)
00
))
)
|
(?:
(?:
0
[
1
-
9
]
|
1
\d
|
2
[
0
-
8
]
)
(?=
[
-
:
\.\/
]
02
[
-
:
\.\/
]
)
)
)
[
-
:
\.\/
]
(?P<month>
0
[
1
-
9
]
|
1
[
012
]
)
[
-
:
\.\/
]
(?P<year>
[
1
-
9
]
\d
{3}
)
)
\b
"
gmx
Open regex in editor
Description
1000-9999 years '-', ' ', ':', '.', or '/' may be user as divider
Submitted by
furren
-
7 months ago