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 3,660 community submitted regex patterns...
2
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
10 years ago
2
price float pattern
ECMAScript (JavaScript)
Checks that value is float format and has two digits at max
Submitted by
@jprajani
-
10 years ago
2
sample
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
2
trim string
ECMAScript (JavaScript)
trim leading and trailing whitespace from a string
Submitted by
Dave Atchley
-
11 years ago
2
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
11 years ago
2
Out of office
ECMAScript (JavaScript)
This is why
Submitted by
anonymous
-
10 years ago
1
Date-Validation with mm/dd/yyyy or mmddyyyy or mm-dd-yyyy or m/d/yyyy
ECMAScript (JavaScript)
Date Validation with leap year handling, & it takes care of date validation in the format like :mm/dd/yyyy or mmddyyyy or mm-dd-yyyy or m/d/yyyy or m-d-yyyy. 12/01/1986 02/29/2016 02/29/2015 13/31/1986...
Submitted by
Ashish
-
9 years ago
2
Error in Refex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
2
US Postal Code
ECMAScript (JavaScript)
refactor
Submitted by
jay johnson
-
11 years ago
2
Javascript: howto get rid of resulting ""
ECMAScript (JavaScript)
Hey folks, I try to do smth like this: var s = 'this is a "" && "string constant" and this "is another" one', result = s.match(new RegExp('"{1}(.*?)"{1}', 'g')); console.log(result);...
Submitted by
anonymous
-
10 years ago
2
Match number in html
ECMAScript (JavaScript)
Prevent matching in markup attributes
Submitted by
Mathieu Civel
-
10 years ago
2
Match 4chan thread URL
ECMAScript (JavaScript)
Matches a 4chan thread URL, see the examples
Submitted by
Zeke Sonxx <github.com/zekesonxx>
-
10 years ago
2
e164 format
ECMAScript (JavaScript)
e164 format
Submitted by
anonymous
-
10 years ago
2
html font to bbcode
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
Get video parameters from many video services at once
ECMAScript (JavaScript)
supported youtube, vimeo, face liveleak, break, ebaums, facebook support url and iframes
Submitted by
Misthero
-
10 years ago
2
Brazillian Phone Number Format (Formato de Num. de Telefone no Brasil)
ECMAScript (JavaScript)
no description available
Submitted by
Castrolol
-
10 years ago
2
Match Characters outside list
ECMAScript (JavaScript)
no description available
Submitted by
vikas
-
10 years ago
2
standard 16 columns hexdump
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
Vimeo Video ID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
extract twitter username from url
ECMAScript (JavaScript)
Adopted one of answers from: http://stackoverflow.com/questions/5948051/regex-extract-twitterusername-from-url
Submitted by
anonymous
-
9 years ago
1
...
10
11
12
13
14
...
183
Community Library Entry
0
Regular Expression
Golang
`
^
(?i)
.
*
(?P<keyword>
menu
|
sp
|
\.
sample
)
.
*
(?P<fileExt>
\.
mkv
|
\.
mp4
)
$
`
Open regex in editor
Description
匹配.mkv和.mp4后缀名中包含menu或sp或.sample,忽略大小写
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)