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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 14,940 community submitted regex patterns...
4
uri parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
URI generic parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Match URL Starts with //
PCRE (PHP <7.3)
You can match the string starts with // (forward slash)
Submitted by
Sanal Menon Kalipurayath
-
9 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Labels with version numbers
PCRE (PHP <7.3)
Quick studty of labels with version numbers
Submitted by
LC
-
9 years ago
1
[attr=value] style
PCRE (PHP <7.3)
no description available
Submitted by
David Rodrigues
-
9 years ago
1
phone
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Only return what's between the brackets i.e. (a)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
Regex for parsing function command line arguments
PCRE (PHP <7.3)
How i can parse the following function command line: The separtor is (\s-\w\s) like -c or -d or -n C:/my app/bin/Reader.dll -n Proc_20ms -c C:/Users/Braun/Desktop/test.csv -t Continue the simulation from the first line of the csv-file -j none -V errors and warnings (default) -d , to: ...
Submitted by
Braun
-
9 years ago
1
REGEX Código Postal Pt
PCRE (PHP <7.3)
Expressão regular para o código postal (postcode) portugês
Submitted by
xsteal
-
9 years ago
4
Hibernate SQL Reductor
ECMAScript (JavaScript)
If you want to understand an SQL statement for Hibernate: this replaces the selected fields in an SQL statement generated by Hibernate by a shorthand, since you usually just care about the logic. E.g. it changes select foo0_.bla as bla1_3, foo0_.bar as bar1_3, foo0_.baz1_3 as baz1_3 from ... to sele...
Submitted by
Hans-Peter Stoerr www.stoerr.net
-
9 years ago
0
fgj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
FLISR group match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
4-digit numeric w/o leading zero and no repeat digits
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
4 digit numeric w/o leading zero and no repeat digits
PCRE (PHP <7.3)
A pcre that capture a 4-digit numeric that does not allow a leading zero and no repeat digits.
Submitted by
Jeff Thompson
-
9 years ago
3
^.*(\/Summary\/).*(chelaxe\.ru).*$
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
7
rsyslog test
PCRE (PHP <7.3)
global modifier
Submitted by
dtmland
-
9 years ago
1
Parse an HL7 date, and capture the components
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
AD Default Password Policy
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
...
706
707
708
709
710
...
747
Parsing browser User Agents
25
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
-
9 years ago
(Last modified 8 months ago)