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
Singular or Plural
ECMAScript (JavaScript)
no description available
Submitted by
Gavin Jackson
-
11 years ago
-4
Date with this format YYYY-MM-DD and year start 20 or 21
PCRE (PHP <7.3)
Date with this format YYYY-MM-DD and year start 20 or 21 like 2014
Submitted by
cisc0
-
11 years ago
0
Date with this format YYYY-MM-DD and year start 20 or 21
PCRE (PHP <7.3)
Date with this format YYYY-MM-DD and year start 20 or 21 like 2014-12-12
Submitted by
cisc0
-
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
1
Switzerland UID id
PCRE (PHP <7.3)
matches the Swiss government's UID id for enterprises
Submitted by
marcel
-
11 years ago
0
decimal numbers
PCRE (PHP <7.3)
match decimal numbers with sign
Submitted by
mariano_dm
-
11 years ago
-2
Filter IP from beggin of log
PCRE (PHP <7.3)
no description available
Submitted by
W
-
11 years ago
-1
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
-2
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
11
Address Check Validation
PCRE (PHP <7.3)
Check for true or false street address format
Submitted by
Dilip Borad
-
11 years ago
1
Replaces odd number of quotes with even number of quotes.
PCRE (PHP <7.3)
no description available
Submitted by
ingredient_15939
-
11 years ago
-2
Get text between quotes (ignore escaped ones)
PCRE (PHP <7.3)
http://stackoverflow.com/a/171499/1519058
Submitted by
Enissay
-
11 years ago
3
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
11 years ago
2
the the
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
help me please
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Find common version names in filenames
PCRE (PHP <7.3)
no description available
Submitted by
Jared
-
11 years ago
2
code bracket parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
adding space after (.) period and next word
ECMAScript (JavaScript)
Requirement was to check if there is space between . and next text and if not the then add space
Submitted by
Prajkta
-
11 years ago
2
US Postal Code
ECMAScript (JavaScript)
refactor
Submitted by
jay johnson
-
11 years ago
3
mm/dd/yyyy Date
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
1
...
893
894
895
896
897
...
900
Community Library Entry
-1
Regular Expression
PCRE (PHP <7.3)
/
(
(?<raute>
#
(?<raute_content>
[^
\n
]
*
)
)
|
(?<doubleslashes>
\/\/
(?<doubleslashes_content>
[^
\n
]
*
)
)
|
(?<block>
\/\*
(?<block_content>
[^
*
]
+
|
\*
(?!
\/
)
)*
+
\*\/
)
)
/
gm
Open regex in editor
Description
Find Comments starting with # or //. Also finds Commentblocks starting with /* and ending with */.
Submitted by
Candyman1332
-
9 years ago