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,040 community submitted regex patterns...
6
reg Ex number range check
PCRE (PHP <7.3)
Hi, I am trying to get a reg ex that will test a number range and also allow european number convention like , for decimal point. I have this one for range check - ^(4-9{3}|1-9{4,5}|12{6}|30-4{5}|3500000)$ and I have this one for allow comma ^\s?([\d\.]+(\,\d{1,2})?|\,\d{1,2})\s$ but I need a comb...
Submitted by
TimJ
-
11 years ago
3
Match quoted strings, ignoring escaped quotes
PCRE (PHP <7.3)
Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.
Submitted by
Maddingue
-
12 years ago
5
Numeric values greater than zero with decimal
PCRE (PHP <7.3)
Pattern that only accept numeric value and greater than zero with up to decimal places ( you can change the decimal places just replace {1,2} depend on how many decimal places you like
Submitted by
Eugene To
-
9 years ago
7
Match text (not within html tag)
ECMAScript (JavaScript)
no description available
Submitted by
Moistly
-
10 years ago
7
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
10 years ago
7
Date validation
ECMAScript (JavaScript)
Besides leap year handling, this takes care of date validation in the yy-mm-dd format.
Submitted by
anonymous
-
9 years ago
4
1st TSV
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
12 years ago
4
Hungarian ANDOK system id
PCRE (PHP <7.3)
no description available
Submitted by
Tana
-
11 years ago
4
REGEX to parse IIS7 Log File into FluentD
PCRE (PHP <7.3)
This regex parses the entire line of the IIS log files (without detail on the AgentID) for usage into FluentD. Q&C - juan.carniglia@gmail.com
Submitted by
Juan Carniglia
-
11 years ago
4
AMEX, VISA, MASTERCARD, and DISCOVER REGEX
PCRE (PHP <7.3)
First pass at a way to find credit card data using regex.
Submitted by
David Maislin
-
10 years ago
4
Hibernate SQL Reductor
ECMAScript (JavaScript)
If you want to understand an SQL statement for Hibernate: this replaces the selected fields in an SQL statement generated by Hibernate by a shorthand, since you usually just care about the logic. E.g. it changes select foo0_.bla as bla1_3, foo0_.bar as bar1_3, foo0_.baz1_3 as baz1_3 from ... to sele...
Submitted by
Hans-Peter Stoerr www.stoerr.net
-
10 years ago
4
match brackets outside quotes
ECMAScript (JavaScript)
no description available
Submitted by
Jerry
-
10 years ago
4
Find Lat/Long Coordinate pair regex
ECMAScript (JavaScript)
no description available
Submitted by
Mike
-
9 years ago
4
Currency Formater Accept , & .
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
4
Mask an email regex
PCRE (PHP <7.3)
Replaces second to last but one characters in email with asterisks (@ and last . are protected): john.travolta@gmail.com > j*a@g**.m
Submitted by
Wiktor Stribiżew
-
9 years ago
4
c#
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
replace-last-comma with semicolon
PCRE (PHP <7.3)
replace-last-comma with semicolon similar to http://stackoverflow.com/questions/3829483/how-to-replace-last-occurrence-of-characters-in-a-string-using-javascript
Submitted by
Michael Freidgeim
-
9 years ago
4
Date yyyy/mm/dd
PCRE (PHP <7.3)
Regex following "ISO 8601" without hour : allowing only month 1 to 12, the day of 1 to 31 for the months of 31 days, the months from 1 to 30 for the months of 30 days, the day of 1 to 28 for February, and the day from 1 to 29 for February of leap years
Submitted by
Sara DULMAR
-
9 years ago
4
BEST simple mail regex validator
ECMAScript (JavaScript)
VALIDATE ALL WOLRD MAIL RULES Very simple expression Less than 140 caracters. Validate on SonarQube typescript, javascript, angular rules ...
Submitted by
Ayslan Johnson (ayslanjohnson@gmail.com)
-
7 years ago
7
CSS Import
Python
no description available
Submitted by
anonymous
-
11 years ago
1
...
887
888
889
890
891
...
902
Community Library Entry
0
Regular Expression
Python
r"
(?P<EngDate>
[
a
-
zA
-
Z
]
+
[
\s
\.
]
)?
(?P<Date0>
(?:
\d
{1,2}
(?=
[
\s
,./-
]
)
|
\d
{4}
)
)
(?:
\.
(?=
\
)
)?
(?(2)
,
?
)
年
?
(?P<d_sep>
[
\s
,./-
]
\
?
)?
(?:
(?P<Date1>
[^
\W\d
]
+
|
\d
{1,2}
)
(?(3)
\.
?
(?P=d_sep)
)
)?
月
?
(?P<Date2>
\d
{4}
|
\d
{1,2}
)?
(?P=d_sep)
?
(?=
[
日T
\s
]
)
"
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
4 years ago