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,840 community submitted regex patterns...
1
Best birth date check
ECMAScript (JavaScript)
Format YYYY-MM-JJ
Submitted by
anonymous
-
3 months ago
1
Birth date check format yyyy-mm-dd
ECMAScript (JavaScript)
Start from 1900-01-01
Submitted by
anonymous
-
3 months ago
1
match time offset from timezone offset string
ECMAScript (JavaScript)
match offset from utc offset string returned by the timeZoneName property of an Intl.DateTimeFormat object. (see MDN documentation here)
Submitted by
Lagoffre
-
2 months ago
(Last modified 2 months ago)
1
match a username after 'user:'
ECMAScript (JavaScript)
self explainatory title, username must not contain any exotic character.
Submitted by
Lagoffre
-
2 months ago
1
match a collection of usernames after tag 'users:' and between '[...]' and separated by commas
ECMAScript (JavaScript)
self explainatory title, usernames array must not contain any exotic character besides ,
Submitted by
Lagoffre
-
2 months ago
1
HTML attributes
ECMAScript (JavaScript)
Find specific HTML attributes
Submitted by
Joseph R.
-
2 months ago
1
RFC3339 Validator
PCRE (PHP <7.3)
RFC3339 Validator
Submitted by
anonymous
-
2 months ago
(Last modified 2 months ago)
1
Instagram hashtag regex
ECMAScript (JavaScript)
Simple and easy regex to find valid IG hastags in a string
Submitted by
Navanshu Rastogi - Febnik
-
2 months ago
(Last modified 2 months ago)
1
ObjAction(\s+\=|\=)(\s+\[|\[).*?\;
ECMAScript (JavaScript)
asdad
Submitted by
anonymous
-
2 months ago
(Last modified a month ago)
1
Simple but powerful email
ECMAScript (JavaScript)
"/" - start of regular expression "^" - anchor to beginning of string Group: [a-z0-9]+ "[a-z0-9]" - Latin character or digit "+" - occurring ONE or more times...
Submitted by
Diableros [https://github.com/Diableros]
-
2 months ago
(Last modified 2 months ago)
1
E-mail pattern for html input.
ECMAScript (JavaScript)
Simply e-mail pattern for html tag.
Submitted by
KsaR99
-
2 months ago
1
Split Docker image into image name, tag and digest with all optional
Golang
Splits a Docker image string into the separate parts: image, tag, digest tag and digest are optional
Submitted by
Roemer
-
2 months ago
1
german date era with tolerance: n. Chr. or v. Chr. / n. Ztr of v. Ztr
ECMAScript (JavaScript)
Maches german era notations in date "v. Chr" and "v. Ztr" It is meant to be tolerant : periods and spaces are optional, and it is case insensitive
Submitted by
Olivier CHEVET
-
a month ago
1
Timestamp Regex
ECMAScript (JavaScript)
matches a timestamp that is in the format of Aug 14, 2024, 10:12 AM or month shortcode followed by day, year, time in 12 hours
Submitted by
astro
-
a month ago
1
url_validation_url_doğrulama
ECMAScript (JavaScript)
^ - This signifies the start of the expression. https?:// - This matches either "http://" or "https://". (www.)? - This makes the "www." subdomain optional. [A-z0-9]+ - This matches one or more alphanumeric characters for the domain name. . - This matches a literal period character. [A-z0-9]+ - This...
Submitted by
Emre Yıldırım
-
a month ago
1
Word Pattern
ECMAScript (JavaScript)
Word Patterns - multilanguage Separating words that handle many use cases I needed, more than simple /\bword\b/gi. Below are some targeted test cases and acceptable failed cases: ...
Submitted by
Bryan Ho
-
24 days ago
1
Discord - Command Name
ECMAScript (JavaScript)
Verification of Application Command names for Discord's API. Useful for Discord applications. Source : discord.dev
Submitted by
volcanofr
-
21 days ago
1
GitHub URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a GitHub repository or tree URL. Handles both HTTP(S) and direct GitHub links.
Submitted by
Xain
-
20 days ago
1
GitLab URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a GitLab repository or tree URL. Handles both HTTP(S) and direct GitLab links.
Submitted by
Xain
-
20 days ago
(Last modified 20 days ago)
1
Bitbucket URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a Bitbucket repository or tree URL. Handles both HTTP(S) and direct Bitbucket links.
Submitted by
Xain
-
20 days ago
1
...
583
584
585
586
587
...
642
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)