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...
1
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
ECMAScript (JavaScript)
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
Submitted by
anonymous
-
5 years ago
1
身份证号, 支持1/2代(15位/18位数字)
ECMAScript (JavaScript)
身份证号, 支持1/2代(15位/18位数字)
Submitted by
anonymous
-
5 years ago
1
discworld mud player titles
PCRE (PHP <7.3)
Comprehensively matches every possible pre-name player title in discworldmud. http://discworld.starturtle.net/lpc/ https://dwwiki.mooo.com/wiki/Title
Submitted by
Zimbus
-
5 years ago
1
Date Match
PCRE (PHP <7.3)
Date Match
Submitted by
anonymous
-
5 years ago
1
Matching Same Text Again & Again
PCRE (PHP <7.3)
Matching Same Text Again & Again
Submitted by
anonymous
-
5 years ago
1
Retailer Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
html tag
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
JSON Validation (RFC-8259)
PCRE (PHP <7.3)
PCRE Regular expression that validates JSON according to grammar specified at RFC-8259 (https://tools.ietf.org/html/rfc8259)
Submitted by
anonymous
-
5 years ago
1
Match HTML Tags
PCRE (PHP <7.3)
Based on an expression from haacked.com
Submitted by
anonymous
-
5 years ago
1
OpenWeather Regex for Rainmeter Weather.ini
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Using a Non-Capturing Group (regex + python)
Python
Using a Non-capturing Group: regex + python This question was asked on stackoverflow and it appeared that the best way to match the expression will be to use a non-capturing group. [#so-question]: https://stackoverflow.com/questions/61882072/python-regex-findall-function-only-returning-matchings-o...
Submitted by
anonymous
-
5 years ago
1
Modem Logging pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Simple JSON Regex Groups for Parsing JSON
PCRE (PHP <7.3)
I figured this would be the simplest way to Parse JSON. We have some known information about the properties to help determine the type at runtime. Properties - Immediately followed by : characters Values - Have a bracket } ] or a , directly after it in the regex return. Strings - They are surrounded...
Submitted by
Dajeki
-
5 years ago
1
Any decimal numbers (floats, integers, with "." and "," with e)
Python
Matches: integers [+-]?\d+(Ee?\d+)? like +45 or 96E-3 or -12e+24 floats starting from "." or "," like -.45e-3 floats starting from \d like 3.14 or -0.67E12
Submitted by
anonymous
-
5 years ago
1
Simple, universal and short regex to find quoted strings. Invalid quotes inside string ignored. flag s (single-line) allows to find multiline strings
Python
'string in simple quotes' "in double-quotes" in back-quotes "Works good with symbols ' or " or ` inside the string" "All another type quotes "' inside string are ignored" use something like \ or \" or \' " Matches only identical quotes on string start and end ' // regex can`t find this...
Submitted by
V. Martian
-
5 years ago
1
Traefik stripprefixregex for web apps
Golang
Notes: Do not forget to escape the $ by an additional $. Escaping ? like \? does not work. But you could use [?] instead End result should be like this: "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[a-z0-9]+([?]+.*)?$$"...
Submitted by
anonymous
-
4 years ago
1
Last Occurrence of comma(,) in a string
ECMAScript (JavaScript)
Used this to dynamically create placeholder text when a user changed the coordinates format from default to custom. ex ['DD', 'DDM', 'DMS'] to remove the comma from the string. The format comes from an array of strings so I had to do a join(', ').replace(/\,(?=*$)/g, ' or') to get DD, DDM or DMS
Submitted by
anonymous
-
4 years ago
1
map json
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
part 1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
day date time
Python
no description available
Submitted by
anonymous
-
4 years ago
1
...
284
285
286
287
288
...
902
Community Library Entry
0
Regular Expression
Python
r"
^
(?P<disabled>
#
*
)?
(?P<min>
\*
/
\d
+
|
\*
|
(?:
\d
+
,
?
)+
)
(?:
)
(?P<hour>
\*
/
\d
+
|
\*
|
(?:
\d
+
,
?
)+
)
(?:
)
(?P<day>
\*
/
\d
+
|
\*
|
(?:
\d
+
,
?
)+
)
(?:
)
(?P<month>
\*
/
\d
+
|
\*
|
(?:
\d
+
,
?
)+
)
(?:
)
(?P<dayofweek>
\*
/
\d
+
|
\*
|
(?:
\d
+
,
?
)+
)
"
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago