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,200 community submitted regex patterns...
-2
Parsing result of SQL Server version (SELECT @@VERSION)
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
3 years ago
-2
PHP Serialization String Validator
PCRE (PHP <7.3)
PHP serialize / unserialize __sleep __wakeup __serialize __unserialize
Submitted by
Abdullah Pazarbasi
-
3 years ago
-2
rustyms: pro forma single modification
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-
2 years ago
-2
Ascending and Descending order
Java 8
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-
2 years ago
-2
Codeforces 1800A Solution
ECMAScript (JavaScript)
By inserting this regex in a programming language to test it against Codeforces 1800A you'll solve the task
Submitted by
EntityPlantt
-
2 years ago
-1
Bluerose order-code
PCRE2 (PHP >=7.3)
order-code 20220623-19563352 20220623-18261367 20220606-15484894 20220606-15484 20220606...
Submitted by
anonymous
-
3 years ago
-1
Best REGEX for extracting FILENAME WITHOUT EXTENSION and EXTENSION from any Posix-like path (version 4)
PCRE (PHP <7.3)
Best REGEX for extracting FILENAME WITHOUT EXTENSION and EXTENSION from any Posix-like path (version 4)
Submitted by
anonymous
-
3 years ago
-1
get_data
PCRE (PHP <7.3)
Extract any kind of numerical value (int or double, positive or negative) from a string written as a vector (ie '(#1, #2, #3)' ).
Submitted by
Jamie C. Dyer
-
3 years ago
-1
Discord Mention
Python
Regex to check if a string is a discord mention
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
-1
Email
ECMAScript (JavaScript)
validation email
Submitted by
anonymous
-
3 years ago
-1
Extract favicon from html head meta links
ECMAScript (JavaScript)
I needed a generic way to pull the shortcut icon for sites. This expression parses the html for the icon. If the icon was not found, my code checks for the "favicon.ico" in the root of the site.
Submitted by
groundh0g
-
3 years ago
-1
IP6 Validator Address (Simple)
PCRE2 (PHP >=7.3)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
-1
MMM DDD YYYY
.NET 7.0 (C#)
FEB MON 2023
Submitted by
anonymous
-
3 years ago
-1
phone
PCRE2 (PHP >=7.3)
regex for phone
Submitted by
anonymous
-
3 years ago
-1
alluse
PCRE (PHP <7.3)
/^(?P0|1-9]\d)\.(?P0|[1-9]\d)\.(?P0|[1-9]\d)(?:-(?P(?:0|[1-9]\d|\d[a-zA-Z-)(?:\.(?:0|1-9]\d|\d[a-zA-Z-))))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gm
Submitted by
alluse
-
3 years ago
-1
regex to check for buffer printing
Python
This regex checks if c/c++ code contains char buffer that is later printed.
Submitted by
tagoras
-
2 years ago
-1
Matching un-wrapped HTML & CSS code blocks in Markdown
ECMAScript (JavaScript)
PATTERNS RegEx Flavour ECMAScript (JavaScript, ActionScript, TypeScript, etc.) ...
Submitted by
anonymous
-
2 years ago
-1
url matcher 2.0
PCRE2 (PHP >=7.3)
now matches any protocol, as well as username, password, query and fragment. query is not split
Submitted by
Mitsunee
-
2 years ago
-1
Discord name with both old and new name support
PCRE2 (PHP >=7.3)
This discord regex supports both the new and the old version of discord names. Old: NAME#[0001-9999] Between 2 and 32 characters....
Submitted by
Fy17
-
2 years ago
-1
Iranian Mobile Numbers
PCRE2 (PHP >=7.3)
To Validate Iranian Operators Number Validation
Submitted by
AMAISGOD
-
2 years ago
1
...
9
10
11
12
13
...
910