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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 6,080 community submitted regex patterns...
0
Website Regex
ECMAScript (JavaScript)
Finds all website URLs
Submitted by
JohnnyJTH
-
2 years ago
0
Log Capture
PCRE2 (PHP >=7.3)
Capture the date, host, message type, and message from the patterns in the log file.
Submitted by
Nicholas Tower
-
2 years ago
0
<style>标签的匹配
PCRE2 (PHP >=7.3)
标签的匹配
Submitted by
anonymous
-
2 years ago
0
<script>标签的匹配
PCRE2 (PHP >=7.3)
标签的匹配
Submitted by
anonymous
-
2 years ago
0
UPN Compiladores
PCRE2 (PHP >=7.3)
UPN Compiladores
Submitted by
anonymous
-
2 years ago
0
ipv4
PCRE2 (PHP >=7.3)
Find ipv4 addresses
Submitted by
anon
-
2 years ago
0
test
PCRE2 (PHP >=7.3)
test
Submitted by
test
-
2 years ago
0
MLA journal article Works Cited bibliography entry
PCRE2 (PHP >=7.3)
MLA journal article Works Cited bibliography entry
Submitted by
Ken M. Penner
-
2 years ago
0
Email simple validation (x@x.x)
PCRE2 (PHP >=7.3)
Simple email validator (x@x.x) Note: Use /g to test all example emails.
Submitted by
davidgaroro
-
2 years ago
(Last modified a year ago)
0
Remove enclosing quotes
PCRE2 (PHP >=7.3)
Removes a pair of quotes enclosing a string and leaves just the string
Submitted by
anonymous
-
2 years ago
0
get teacher url
ECMAScript (JavaScript)
will match ^/teacher//list$ ^/teacher//file/$ ^/teacher//info/$ ...
Submitted by
anonymous
-
2 years ago
0
regex_commercial_activities
PCRE2 (PHP >=7.3)
guifro
Submitted by
guifro
-
2 years ago
0
Clean phone numbers
ECMAScript (JavaScript)
(204)555-5555 (204)-(555)-(5555) 204-555-5555 To: 2045555555
Submitted by
smitpatelx
-
2 years ago
0
first word regex
PCRE2 (PHP >=7.3)
this can be used to show first word
Submitted by
anonymous
-
2 years ago
0
OS正则表达式
Java 8
zzx
Submitted by
zzx
-
2 years ago
0
DB
Java 8
DB
Submitted by
DB
-
2 years ago
0
Public Phone
PCRE2 (PHP >=7.3)
Public phone regex
Submitted by
AlexVerkhov
-
2 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
-
2 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
-
2 years ago
0
Test Function Block
PCRE2 (PHP >=7.3)
Test
Submitted by
anonymous
-
2 years ago
1
...
234
235
236
237
238
...
304
Credit Card Expiry Date
13
Regular Expression
ECMAScript (JavaScript)
/
^
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
(
\/
|
-
)
(
[
0
-
9
]
{4}
)
$
/
gm
Open regex in editor
Description
Allows inserting expiry date as MM/YYYY or MM-YYYY format
Submitted by
Rider
-
9 years ago