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 12,060 community submitted regex patterns...
0
IPv6
PCRE2 (PHP >=7.3)
Matches an IPv6 address. Performances are the same as the excellent one from frusty. This regular expression uses pattern repetition (?n) to reduce the length to 191 characters.
Submitted by
Piwi
-
2 years ago
0
Rejex1
PCRE2 (PHP >=7.3)
Preg_match
Submitted by
anonymous
-
2 years ago
0
Bangla word Regex
PCRE2 (PHP >=7.3)
This regex will help to detect Bengali words.
Submitted by
Rudra Sarkar
-
2 years ago
0
MySQL : table structure info
PCRE2 (PHP >=7.3)
MySQL : table structure parser mysql command : SHOW COLUMNS FROM edn_work_order_event
Submitted by
dobri
-
2 years ago
0
(1) Custome, 50 Another Word
PCRE2 (PHP >=7.3)
Some description
Submitted by
anonymous
-
2 years ago
0
SWIG ModuleName
PCRE2 (PHP >=7.3)
indentify the Modulename
Submitted by
anonymous
-
2 years ago
0
cyrillic month match
PCRE2 (PHP >=7.3)
Соня :3
Submitted by
seocringe
-
2 years ago
0
Numbers only
PCRE2 (PHP >=7.3)
Detect numbers only in entire word each line
Submitted by
sarumie
-
2 years ago
(Last modified 2 years ago)
0
UUID Validator
PCRE2 (PHP >=7.3)
Yup, that's a Universal Unique Identifier alright
Submitted by
anonymous
-
2 years ago
0
7zip file type regex
.NET 7.0 (C#)
header of output from > 7z i
Submitted by
ninmonkey
-
2 years ago
0
Beatiful.ai clean up
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
2 years ago
0
URL Regex
PCRE2 (PHP >=7.3)
URL regex
Submitted by
anonymous
-
2 years ago
0
URL REGEX
PCRE2 (PHP >=7.3)
URL REGEx
Submitted by
anonymous
-
2 years ago
0
Encontrado Milhares
PCRE2 (PHP >=7.3)
milhares/centenas/dezenas milhares/centenas/dezenas/unidades milhares/centenas milhares/dezenas
Submitted by
anonymous
-
2 years ago
0
title and page
.NET 7.0 (C#)
find title and page in text
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
nextflow
PCRE2 (PHP >=7.3)
nextflow grammer
Submitted by
anonymous
-
2 years ago
0
AWS Cron regex
PCRE2 (PHP >=7.3)
A incomplete regex for validating AWS cron expressions
Submitted by
anonymous
-
2 years ago
0
Filter Special Characters
PCRE (PHP <7.3)
A regular expression to filter special characters.
Submitted by
gwicho38
-
2 years ago
0
поиск по ключу но только при наличии еще одного ключа
PCRE2 (PHP >=7.3)
регулярное выражение по вхождению ключа, но только при наличии еще одного ключа
Submitted by
Oin
-
2 years ago
0
Filtering of URL parameter passwords
PCRE2 (PHP >=7.3)
When logging URLs the passwords that are sent as URL parameters should be masked out to not write them in clear text into the log files.
Submitted by
Jan Kessler
-
2 years ago
1
...
563
564
565
566
567
...
603
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)