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
SAS Boundaries version 3
PCRE (PHP <7.3)
Basic sas boundaries, %macro proc %include etc
Submitted by
Leo Lopes
-
9 years ago
0
Validate Semantic version numbering
PCRE (PHP <7.3)
This validates version numbers that adhear to the Semantic protocol e.g. in form of xx.xx.xx or 1.2.2
Submitted by
Al
-
9 years ago
0
#tagging tag form regex
PCRE (PHP <7.3)
hash tagging actual title or description format regex
Submitted by
rameespu@gmail.com
-
9 years ago
0
#tagging original form regex
PCRE (PHP <7.3)
#tagging original form regex
Submitted by
rameez rami
-
9 years ago
0
Unix file name from full path
PCRE (PHP <7.3)
Replace the forward slashes with back slashes for Windows
Submitted by
anonymous
-
9 years ago
0
hidden項目デフォルト隠蔽
PCRE (PHP <7.3)
これを技術担当に見せれば理解してくれるはず。 '(]type="[text|hidden]"value=")(+)("*>)' このコードがデフォルトでClickTaleタグ内のJSに付与されてて、 これがあるとフォームで入力された項目等は全て【ーーーー】に...
Submitted by
井上
-
9 years ago
0
Search for foobar in a csv string
PCRE (PHP <7.3)
Search for foobar in a csv string
Submitted by
Balmark
-
9 years ago
0
emailfider
Python
no description available
Submitted by
anonymous
-
9 years ago
0
regex buscar string u otro string
PCRE (PHP <7.3)
RegEx Multiples String seguido de un string fijo
Submitted by
profvalenzuela
-
9 years ago
0
Sass variable assignation
Python
find every Sass variabile assignation
Submitted by
Giorgia Bonini
-
9 years ago
0
author from tag
ECMAScript (JavaScript)
no description available
Submitted by
imilov
-
9 years ago
0
TAYLOR REPLACEMENT STRING
PCRE (PHP <7.3)
TAYLOR Part Replacement
Submitted by
Case Ahr
-
9 years ago
0
OSI Key
PCRE (PHP <7.3)
no description available
Submitted by
Mike LeBlanc
-
9 years ago
0
handlebars template match
ECMAScript (JavaScript)
returns all the handlebars elements in a line - returns {{...}} for each instance found Matches the following test {{sss}} s {{rrr}} dkdksl {{dds}} {{ dhre }} {{je ss}} returns ['{{sss}}','{{rr}}','{{dds}}','{{ dhre }}','{{je ss}}']
Submitted by
anonymous
-
9 years ago
0
NATO Stock Number (with or without NSC)
PCRE (PHP <7.3)
RegEx to validate a NATO Stock Number with or without the NATO Stock Code and with or without dashes
Submitted by
Matthew Perryman
-
9 years ago
0
Verify Amateur Radio Call Sign meets ITU Format
Python
no description available
Submitted by
Neil Johnson
-
9 years ago
0
grok
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
match dev URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
get parts of URL
PCRE (PHP <7.3)
split URL in protokoll, domain, file(with path), parameter and anker
Submitted by
Candyman1332
-
9 years ago
0
Papierloses Büro
PCRE (PHP <7.3)
Dieser regex ist für das Programm DropIt gedacht, damit eingescannte und danach manuell benannte Dokumente automatisch einsortiert werden.
Submitted by
traxxus
-
9 years ago
1
2
3
...
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)