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,000 community submitted regex patterns...
1
Extract columns names from any select query
Golang
This regex can capture any column name from a select query. Be the original name, like are named on table, renamed with a reserved word AS or even without explicit AS. Go on, and test with your query ;)
Submitted by
Jefferson Gouveia
-
6 years ago
1
Detect JSON entries
PCRE (PHP <7.3)
This Regexp here has probably been done a ton of times, but I kind of figured one out here, so I decided to post it anyways. It may or may not be a duplicate, but this also will ignore any strings that a JSON entry may have so that it knows not to detect something if a value contains text like "som...
Submitted by
Ghostyrun
-
6 years ago
1
GIT URL
ECMAScript (JavaScript)
no description available
Submitted by
UNKNW
-
6 years ago
1
c/c++ include
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
find word near another word (10 words distance)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
Match Decimal allow single leading/tailing 0
ECMAScript (JavaScript)
Matches a decimal, but only allows for leading/tailing Zeros if they are the first digit to precede or follow the decimal point
Submitted by
Doom87er
-
6 years ago
1
ESR und ESR+
PCRE (PHP <7.3)
ESR Einzahlungsscheine (CH)
Submitted by
dhu
-
6 years ago
1
UK Telephone Numbers
ECMAScript (JavaScript)
no description available
Submitted by
Riaan Joubert
-
6 years ago
1
Validate image URL
PCRE (PHP <7.3)
Adaptation of RFC-3986 uri validation - https://tools.ietf.org/html/rfc3986 Validates that URL contains an image (jpg/jpeg/png/gif) reference whilst also allowing for queries Key parts of URL are captured in named groups The URL portion is also optional, so will validate just an image filename if r...
Submitted by
Norris
-
6 years ago
1
The Ultmate Email validation regex
PCRE (PHP <7.3)
This regex validates an email against RFC 5322 with RFC 6530 merged in. This allows for checking for International email addresses. Note that this regex works on bytes so any Unicode characters will have to be encoded in UTF-8 before they will pass.
Submitted by
anonymous
-
6 years ago
1
State abbreviations
PCRE (PHP <7.3)
This regex efficiently captures any U.S. state abbreviation in only 117 characters, as opposed to 159 characters to list each state individually.
Submitted by
anonymous
-
6 years ago
1
Version RegEx
PCRE (PHP <7.3)
Matches version numbers consisting of only digits and dots.
Submitted by
anonymous
-
6 years ago
1
Finnish Mobile Number Validation
PCRE (PHP <7.3)
Checks for valid Finnish mobile numbers, takes in to account possible operator codes, different ways of marking country code if supplied and allows for hyphens and spaces in places where they are commonly used.
Submitted by
anonymous
-
6 years ago
1
Web url to image file including capture groups
PCRE (PHP <7.3)
Conforms to various RFC specifications Captures key components of url: Protocol Authority Port...
Submitted by
anonymous
-
6 years ago
1
Look up corresponding value in unsorted list
PCRE (PHP <7.3)
We have a GeoJSON that needs a "war_memorials" attribute added and populated with the correct value. Trouble is the sorting of the Features is not the same as the sorting of the CSV data with the values. So you can't just use a multiple-selection in Sublime Text and paste in place. This solution...
Submitted by
anonymous
-
6 years ago
1
从一个时间段中提取末尾时间点
ECMAScript (JavaScript)
支持仅有日期
Submitted by
anonymous
-
6 years ago
1
Fortnite Matcher for banning Fortnite
PCRE (PHP <7.3)
It is not compatible with leet speak, you can replace all numbers with their letter counterparts before matching the string with regex.
Submitted by
Kyza
-
6 years ago
1
Datumsformat dd.MM.yyyy und yyyy-MM-dd
PCRE (PHP <7.3)
Erkennt Daten der deutschen Schreibweise 10.10.2018 1.2.18 ... und Daten im Format...
Submitted by
anonymous
-
6 years ago
1
Regex for JavaScript Templating
ECMAScript (JavaScript)
Selects everything between two pairs of curly braces
Submitted by
anonymous
-
6 years ago
1
Find CSS hexadecimal color values
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
1
...
743
744
745
746
747
...
900
Community Library Entry
1
Regular Expression
Python
r"
^
(
s3
[
na
]
?
://
)
(
.
*
:
.
*
@
)?
(
[^
/
]
*
)
/
(
.
*
)
$
"
Open regex in editor
Description
Regex which finds and groups the Amazon S3 scheme (e.g. s3, s3n, s3a), bucket name, and key.
Submitted by
Sterling Hoeree
-
9 years ago