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,020 community submitted regex patterns...
0
Regex PO
PCRE2 (PHP >=7.3)
Regex PO
Submitted by
anonymous
-
a year ago
0
Regex PO 2
PCRE2 (PHP >=7.3)
Regex PO 2
Submitted by
anonymous
-
a year ago
0
parse data URL
ECMAScript (JavaScript)
Parse Data URL like: data:image/png;base64,__iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==__
Submitted by
Alan S. Ferreira
-
a year ago
0
Matches words and groups words in quotes
ECMAScript (JavaScript)
Spilt a string grouping words in quotes. String: First Last "Full Name" Matches: First|Last|"Full Name"
Submitted by
Frosty
-
a year ago
-1
Email with (TLD match)
ECMAScript (JavaScript)
Match an email address and the TLD (.com, .net, .org etc) String: test@test.net Matches: test@test.net|.net
Submitted by
Frosty
-
a year ago
(Last modified 2 months ago)
0
Clearlinux Repository file pattern
PCRE2 (PHP >=7.3)
not production ready
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Parsing a Log File Entry
PCRE2 (PHP >=7.3)
This regular expression matches the start of the string at the position where we have one or more alphanumeric characters followed by a space. Afterwards, we have a digit (one or more). Later, we have one or more spaces followed by a time format followed by a space and alphanumeric characters. The i...
Submitted by
Muhammad Afroz Khan Ghauri
-
a year ago
0
Bangladeshi Phone Number Matching Regex
PCRE2 (PHP >=7.3)
Bangladeshi Any Phone Number Validated preg_match() in php function
Submitted by
anonymous
-
a year ago
0
Extract Dive Properties from Dive Code
PCRE2 (PHP >=7.3)
Extracts the following properties from a properly formatted dive code as specified by the World Aquatics organisation.
Submitted by
Hessel Bierma
-
a year ago
0
Cover dates from 2009 and older in French format and English
Java 8
Covering Dates starting from year 2009 and older in French and English Some of the valid Dates format April 2nd 2008 April 2 2008 April 02 2008...
Submitted by
Francois-Alexandre Valade-Casaubon
-
a year ago
0
Signals
PCRE2 (PHP >=7.3)
Replace Signal
Submitted by
RedFox Regex
-
a year ago
0
檢查密碼是否符合要求
PCRE2 (PHP >=7.3)
長度在12到30個字符之間; 至少包含一個小寫字母; 至少包含一個大寫字母; 至少包含一個數字; 至少包含一個特殊符號(如!@#$%^&*()_+{}|:"?[];',./`~-)。
Submitted by
SCL
-
a year ago
0
RFC-3339
PCRE2 (PHP >=7.3)
A regex to validate RFC-3339 timestamps
Submitted by
anonymous
-
a year ago
0
JavaScript camelCase
ECMAScript (JavaScript)
including digits and sequential uppercase letters
Submitted by
anonymous
-
a year ago
0
JavaScript kebab-case
ECMAScript (JavaScript)
including digits and double dashes
Submitted by
anonymous
-
a year ago
0
routestate
PCRE2 (PHP >=7.3)
pathfinder routestate logs are unreadable
Submitted by
anonymous
-
a year ago
0
best2bee topic standard
PCRE2 (PHP >=7.3)
Submitted by
anonymous
-
a year ago
0
Busca parametros função
PCRE2 (PHP >=7.3)
Busca os parametros de uma função
Submitted by
anonymous
-
a year ago
-2
rustyms: pro forma single modification
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-
a year ago
0
Trim part of filename to limit length
PCRE2 (PHP >=7.3)
Truncate the middle block in the filename if it exceeds the maximum length and leave constant blocks at the beginning and end
Submitted by
Andrey Smirnov
-
a year ago
1
...
895
896
897
898
899
...
901
Community Library Entry
27
Regular Expression
PCRE (PHP <7.3)
/
(?(DEFINE)
(?P<ver>
\d
+
(?:
\.
\d
+
)*
(?!
[
.
\d
]
)
)
(?P<agent>
Mozilla
\/
(?&ver)
)
(?P<os>
(?&os_windows)
|
(?&os_linux)
|
(?&os_macintosh)
|
(?&os_ios)
)
(?P<os_windows>
Windows
[
]
\w
+
[
]
(?&ver)
)
(?P<os_linux>
Linux
(?:
[
]
(?:
i686
|
x86_64
)
)?
)
(?P<os_macintosh>
Macintosh
)
(?P<os_ios>
(?:
CPU
[
]
)?
iPhone
[
]
OS
|
CPU
[
]
OS
.
*
?
like
[
]
Mac
[
]
OS
[
]
X
)
(?P<device>
(?&device_ios)
|
(?&device_firefox)
|
(?&device_android)
)
(?P<device_ios>
iPhone
|
iPad
)
(?P<device_firefox>
Mobile
)
(?P<device_android>
Android
(?:
[
]
(?&ver)
)?
)
(?P<browser>
(?:
(?&browser_ie)
|
(?&browser_safari)
|
(?&browser_chrome)
|
(?&browser_chromium)
|
(?&browser_firefox)
|
(?&browser_version)
#
|
(?&browser_nexus)
|
(?&browser_mobile)
|
(?&browser_gsa)
|
(?&browser_quicklook)
|
(?&browser_opera)
)
[
\/
]
(?:
[
A
-
Z
\d
]
+
\b
(?!
\.
)
|
(?&ver)
)
)
(?P<browser_safari>
(?:
Mobile
[
]
)?
Safari
)
(?P<browser_chrome>
Chrome
)
(?P<browser_chromium>
\b\w
+
\b
[
]
Chromium
)
(?P<browser_firefox>
Firefox
)
(?P<browser_ie>
MSIE
)
(?P<browser_version>
Version
)
(?P<browser_nexus>
Nexus
[
]
\d
+
[
]
Build
)
(?P<browser_mobile>
Mobile
)
(?P<browser_gsa>
GSA
)
(?P<browser_quicklook>
QuickLook
)
(?P<browser_opera>
OPR
)
)
^
(?:
(?=
.
*
?
(?P<Agent>
(?&agent)
)
)
)
(?:
(?=
.
*
?
(?P<OS>
(?&os)
)
)
)
(?:
(?=
.
*
?
(?P<Device>
(?&device)
)
)
)?
(?:
(?=
.
*
?
(?P<Browser>
(?&browser)
(?:
[
]
(?&browser)
)*
)
)
)?
/
gmx
Open regex in editor
Description
From a (fairly large) list of User Agent strings, extract the OS, Browser, and Device Type.
Submitted by
OnlineCop
-
10 years ago
(Last modified a year ago)