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 17,580 community submitted regex patterns...
-1
localhost match range ip with port number
Python
Matches all ips that points to localhost like, optionally capturing port number: 127.X.X.X and 127.X.X.X:
Submitted by
Rodrigo M. A.
-
9 years ago
1
Chrizzzs Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
ok
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
Roman numbers
ECMAScript (JavaScript)
This regex matches roman numbers from 1 (I) to 3999 (MMMCMXCIX)
Submitted by
Nicolò Ribaudo
-
9 years ago
1
Angler Exploit Kit
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Date Validation
ECMAScript (JavaScript)
This pattern validates all the possible dates for all months in YYYY-MM-DD format. Due to limitations of regex it can not validate the dates of february for leap year. It will allow the date 29 for leap year too. Make sure to validate that yourself.
Submitted by
Ashutosh Agrawal
-
9 years ago
2
YouTube Iframe parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
BETWEEN clause
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
yowsup-cli message parsing
Python
This pattern parses the yowsup-cli message output to recover (otherwise lost) messages. Current yowsup version: v2.4
Submitted by
kerel
-
9 years ago
-2
Valid Email
ECMAScript (JavaScript)
Use this Regex for server-side validation also with some slight modifications like so for .NET -- @\w+([-+.']\w+)@\w+([-.]\w+)\.[a-zA-Z0-9]{2,6}(-.{2,6})*;
Submitted by
Fred Scales
-
9 years ago
1
Valid Email
ECMAScript (JavaScript)
This is the javascript equivalent that .NET uses in their server-side validators.
Submitted by
anonymous
-
9 years ago
2
Markup link
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Capture nested strings using recursion
PCRE (PHP <7.3)
Brackets, Parentheses, Braces, delimited
Submitted by
anonymous
-
9 years ago
1
check password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
visa cvv
PCRE (PHP <7.3)
4003447582444271
Submitted by
anonymous
-
9 years ago
0
shankar g mirpuri social security number
Python
no description available
Submitted by
anonymous
-
9 years ago
1
rr filter
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
html img tag src
ECMAScript (JavaScript)
get src url from img tag in html
Submitted by
anonymous
-
9 years ago
1
simple labels
PCRE (PHP <7.3)
matches alphanumeric characters and apostrophes ex. Superman's Cape
Submitted by
anonymous
-
9 years ago
1
route53 export to bind format, moving TTL field
PCRE (PHP <7.3)
move TTL field from route53 zone export from right to left to "IN A/CNAME"
Submitted by
shawn.puschnig@medialets.com
-
9 years ago
1
...
765
766
767
768
769
...
879
201811發報碼使用規則
0
Regular Expression
PCRE (PHP <7.3)
/
^\d
{6}
(
-
[
a
-
zA
-
Z0
-
9
]
|
[
a
-
zA
-
Z0
-
9
]
)+
$
/
Open regex in editor
Description
最多32個字元
可允許的字元為數字[0-9]、大小寫英文[a-z A-z]與 "-"
前六個字一定是數字,例: YYYYMM
後面可直接是數字或英文字
可用一個 "-" 或 "
" 做分隔,不能連續。例:"---"、"
__
"、"-
"
尾端不留 "-" 例:201811example-
可允許的範例
2018113100001
201811thisIsExample
201811example-12345
20181109-example-123
不允許
201811
abc201811test-example
2018example-123
201811--example---456
201811中文 abc example! @xyz
201811-we-are-here-
Submitted by
anonymous
-
5 years ago