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
DB
Java 8
DB
Submitted by
DB
-
3 years ago
0
Public Phone
PCRE2 (PHP >=7.3)
Public phone regex
Submitted by
AlexVerkhov
-
3 years ago
0
Match a CiviCRM Case Hash
PCRE2 (PHP >=7.3)
CiviCRM prepends a hash to email subjects. This regex will capture the case hash and formatting and possibly useful for removing this text.
Submitted by
dtwx
-
3 years ago
0
Readable fail2ban logs in AWS Cloudwatch
PCRE2 (PHP >=7.3)
Captures date, time, jail, action and ip address so they can be better formatted.
Submitted by
dtwx
-
3 years ago
0
Test Function Block
PCRE2 (PHP >=7.3)
Test
Submitted by
anonymous
-
3 years ago
0
cri logfmt
Golang
The CRI expr will match and parse log lines of this format: 2019-01-01T01:00:00.000000001Z stderr P some log message `
Submitted by
east4ming
-
3 years ago
0
matlab代码
Python
matlab代码
Submitted by
java
-
3 years ago
0
Default HTML5 with German Umlauts
ECMAScript (JavaScript)
Adds german special characters äöüß to the default HTML5 regex
Submitted by
mroettgen
-
3 years ago
0
括号匹配
Java 8
(\[]\])|(【】)|(())|(\(\))
Submitted by
nasion
-
3 years ago
0
Pan Number
PCRE2 (PHP >=7.3)
Pan Number
Submitted by
anonymous
-
3 years ago
0
GSTN
PCRE2 (PHP >=7.3)
Goods & Service Tax Numebr
Submitted by
anonymous
-
3 years ago
0
JavaScript Parse CSS Selector
ECMAScript (JavaScript)
Parse CSS Selector in the form element#id.class into its components. Any of the three elements can be missing.
Submitted by
Mark
-
3 years ago
0
Name regex
PCRE2 (PHP >=7.3)
Custom name validation
Submitted by
anonymous
-
3 years ago
0
MyRegex
Python
"(\d+年\d+月\d+日).新增本土.确诊病例(\d+)例.无症状感染者(\d+)例.其中(\d+)例确诊病例为此前无症状.,(\d+)例确诊病例和(\d+)例无症状感染者.相关风险人群排查中发现"
Submitted by
Mark
-
3 years ago
0
Get First Name
ECMAScript (JavaScript)
Grab a first name from a full name string
Submitted by
Tom
-
3 years ago
0
Snap Regex
PCRE2 (PHP >=7.3)
Pull property names snap Json
Submitted by
anonymous
-
3 years ago
0
find const string in code for xml/java
Python
.
Submitted by
anonymous
-
3 years ago
0
Find next valid markup element of XML content
PCRE (PHP <7.3)
I created the regexp using the XML-specificaton (https://www.w3.org/TR/xml), but in a simplified format (for example allowing only a narrowed set of tag-name characters). The regular expression is a recursive regexp with backreference. I do not tested extensively the regex with a regex-directed engi...
Submitted by
GyRos
-
3 years ago
0
Money format
PCRE2 (PHP >=7.3)
Any money format
Submitted by
anonymous
-
3 years ago
0
IP Address
Java 8
IP Address RegEx
Submitted by
anonymous
-
3 years ago
1
...
488
489
490
491
492
...
901
Community Library Entry
0
Regular Expression
Python
r"
^
[
a
-
zA
-
Z
]
{1,2}
\d
[
a
-
zA
-
Z
\d
]
?
\s
?
\d
[
a
-
zA
-
Z
]
{2}
$
"
gm
Open regex in editor
Description
Detects UK postcodes (minimal edge cases)
Submitted by
anonymous
-
3 years ago