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 9,220 community submitted regex patterns...
0
amazIng regex
PCRE (PHP <7.3)
super
Submitted by
anonymous
-
2 years ago
0
inefficient int/float(exponent)
PCRE (PHP <7.3)
match a single number
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Importing Confluence Application Logs to Amazon Athena
PCRE (PHP <7.3)
Though in Athena you would need two backslash instead of one as listed above in Regex. expression in Athena. "input.regex" = '^(.?) (.?) (.?) \\[(.?)\\] \\[(.*?)\\] (.+)$'
Submitted by
Chirag Parikh
-
2 years ago
0
Negative search
PCRE (PHP <7.3)
Seach pattern that doesn't match
Submitted by
Gael Langlais
-
2 years ago
0
1-100
PCRE (PHP <7.3)
1-100
Submitted by
anonymous
-
2 years ago
0
Whatsapp group message id
PCRE (PHP <7.3)
Whatsapp group message id
Submitted by
anonymous
-
2 years ago
0
Regex to match all instances not inside quotes
PCRE (PHP <7.3)
See https://stackoverflow.com/questions/6462578/regex-to-match-all-instances-not-inside-quotes
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Filtro Página web
PCRE (PHP <7.3)
Filtro pagina web
Submitted by
anonymous
-
2 years ago
0
COINGBIT
PCRE (PHP <7.3)
0x18a0C976040e8FD9E529b8B363150b201606396e COINGBIT USD $70000000.0 Paypal gislainelophes@gmail.com CPF 04805338652
Submitted by
COINGBIT
-
2 years ago
(Last modified 2 years ago)
0
decamelize
PCRE (PHP <7.3)
pascal case to snake case
Submitted by
anonymous
-
2 years ago
0
Extracting subtitle entries
PCRE (PHP <7.3)
Extract subtitle entries out of SRT files.
Submitted by
anonymous
-
2 years ago
0
https://github.com/AriesTriputranto9/datasets.git
PCRE (PHP <7.3)
actions-runner-win-x64-2.300.2.zipDownload We recommend configuring the runner under "\actions-runner". This will help avoid issues related to service identity folder permissions and long path restrictions on Windows. Create a folder under the drive root $ mkdir actions-runner; cd actions-runner# D...
Submitted by
AriesTriputranto
-
2 years ago
0
NMEA after timestamps
PCRE (PHP <7.3)
Picks up (most?) NMEA messages.
Submitted by
David Harrison
-
2 years ago
0
Search Trailing Commas
PCRE (PHP <7.3)
Regex used for finding trailing commas. Use for troubleshooting PHP 7.2 Codes
Submitted by
anonymous
-
2 years ago
0
Match HTML comments with nested comments
PCRE (PHP <7.3)
Even if this is not valid HTML, it's more to understand the concept of recursion in patterns. It was an answer to a Stack overflow question: https://stackoverflow.com/questions/75282404/remove-comments-from-some-generated-html-which-can-be-invalid-with-nested-commen The idea is to use PCRE's recur...
Submitted by
Patrick Janser
-
2 years ago
0
trim phone number
PCRE (PHP <7.3)
trim phone number
Submitted by
anonymous
-
2 years ago
0
Parcing2
PCRE (PHP <7.3)
aa
Submitted by
anonymous
-
2 years ago
0
Extract any http https and any url form
PCRE (PHP <7.3)
This will help you to extract any URL inside your text
Submitted by
Abdullah Alweheid
-
2 years ago
0
User-Agent
PCRE (PHP <7.3)
Parser
Submitted by
sn3kdev
-
2 years ago
0
Parse arguments
PCRE (PHP <7.3)
Parse arguments
Submitted by
Ofir Yariv
-
2 years ago
1
...
457
458
459
460
461
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)