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,040 community submitted regex patterns...
0
Get the root of a Windows path
PCRE (PHP <7.3)
This extracts the "root" (e.g. drive) from a Windows path. See the unit tests for examples
Submitted by
J5lx
-
10 years ago
0
Convert PHP var to array
PCRE (PHP <7.3)
I use this regex to quickly convert the class' variables into a string which is usable with the "function" array. I copy-paste the varialbe name and use this regex. Useful to convert all your variable and put it in the magic function __sleep(). After it, you can delete the variables you don't want.
Submitted by
anonymous
-
10 years ago
0
Finnsih date with the "dd mmmm yyyy" format
Python
Parse a Finnish date with de "dd. mmmm yyyy" or "dd.mm.yyyy" format.
Submitted by
Tantale
-
10 years ago
0
Remove double-slash comments
Python
This regex removes double-slash comments while avoiding anything between 'quotes' or "double quotes".
Submitted by
jlacroix
-
10 years ago
0
Improved RegEx101 ID Grabber
PCRE (PHP <7.3)
Grabs the ID and revision from the URL.
Submitted by
RF
-
10 years ago
0
html tags with exclusions
PCRE (PHP <7.3)
Matches any text starts with ""; Tag exclusions described in first non-capturing group (can be removed); Tag name will be captured by group #1;
Submitted by
Pavel Savkin aka nhaizere
-
10 years ago
0
year match
PCRE (PHP <7.3)
2010-2012
Submitted by
tazbir
-
10 years ago
0
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
File name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
UAE Phone Numbers
Python
no description available
Submitted by
Sebastian
-
10 years ago
0
YouTube Video ID + URL validator
PCRE (PHP <7.3)
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
-
10 years ago
0
Substitution not wokring
Python
For python regex, substiution not working properly. It is not replcing matched content of $1... and so on. Please take a look.
Submitted by
anonymous
-
10 years ago
0
brian
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Port mapping
PCRE (PHP <7.3)
no description available
Submitted by
yord
-
10 years ago
0
Matching lines that starts with -
PCRE (PHP <7.3)
It may be useful inorder to replace those lines with li
Submitted by
Said Bakr
-
10 years ago
0
Name
ECMAScript (JavaScript)
Simple name matching Matches english names only, you may add international characters to list of characters.
Submitted by
Ehsan
-
10 years ago
0
Any mail address
PCRE (PHP <7.3)
Any mail address
Submitted by
Himalay
-
10 years ago
0
Match IP (ipv4) addresses: [0.0.0.0]-[255.255.255.255]
PCRE (PHP <7.3)
Matches ranges from 0-255 for all four octets. Extra leading or trailing '.' invalidate the match, as do values > 255.
Submitted by
OnlineCop
-
10 years ago
0
media info parser
PCRE (PHP <7.3)
This regex can be used to parse the "general", "video" or "audio" stream metadata returned by the mediainfo.dll inform() call.
Submitted by
J.T. Taylor
-
10 years ago
0
Matches dash-seperated terms in.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
28
29
30
31
32
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
Chrome
\/
(
\d
+
)
/
i
Open regex in editor
Description
Detect version of Chrome browser in navigator.userAgent
Submitted by
Avaray
-
a year ago