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 120 community submitted regex patterns...
0
https://rextester.com/JFUKE76014
.NET 7.0 (C#)
0x9d9b6f05d7b72588f83cc60fda4286ba45d13924 Nonce 6324 Rash 0xa964e1ee4c92c25f47392f67b735095304631089b5f2173825b7e93f49f08d57 Bloco 3391586 Commit fb5aa46...
Submitted by
0x9d9b6f05d7b72588f83cc60fda4286ba45d13924
-
2 years ago
0
nick anme
.NET 7.0 (C#)
mvp
Submitted by
doppler
-
2 years ago
(Last modified 2 years ago)
0
Get h1-6 tag
.NET 7.0 (C#)
(.*?)
Submitted by
OlegBel
-
2 years ago
0
Match IPv4 Valid
.NET 7.0 (C#)
expression to capture valid IP
Submitted by
anonymous
-
2 years ago
0
^[A-Z,a-z,\-, ,\&]+$
.NET 7.0 (C#)
Koray Bilgi, Text-Regex
Submitted by
anonymous
-
2 years ago
0
01 Jan 2022 Mon 01:02:03
.NET 7.0 (C#)
01 Jan 2022 Mon 01:02:03
Submitted by
anonymous
-
2 years ago
0
USD
.NET 7.0 (C#)
USD
Submitted by
anonymous
-
2 years ago
0
Minimum 10 herhangi dijit
.NET 7.0 (C#)
Minimum 10 herhangi dijit
Submitted by
anonymous
-
2 years ago
0
15.02.2022 15:00:00
.NET 7.0 (C#)
15.02.2022 15:00:00
Submitted by
anonymous
-
2 years ago
0
Get ip address (only ipv6) Validator
.NET 7.0 (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
2 years ago
(Last modified 2 years ago)
0
Get ip address (only ipv4) Validator
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
2 years ago
(Last modified 2 years ago)
0
Replace namespaces in xpath with local-name
.NET 7.0 (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
2 years ago
0
for killerswim
.NET 7.0 (C#)
a
Submitted by
anonymous
-
2 years ago
0
Youtube Video Id
.NET 7.0 (C#)
Matches the video Id in Youtube URL.
Submitted by
CW
-
2 years ago
0
URL Validation
.NET 7.0 (C#)
Can be used to validate on URL's.
Submitted by
anonymous
-
2 years ago
0
Camel-Case Splitter (preserves Acronyms)
.NET 7.0 (C#)
Splits camel-case string and preserves acronyms
Submitted by
Tyler S.
-
a year ago
1
...
4
5
6
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)