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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 5,620 community submitted regex patterns...
1
CSS RGB Color
ECMAScript (JavaScript)
CSS RGB Color Regex for JS Supports RGB and RGBA syntax (identical in CSS Color Module Level 4) Well tested Allows for decimal values Currently does not support percentage values or CSS Color Module Level 4 white-space syntax
Submitted by
anonymous
-
5 years ago
1
CSS Hex Color
ECMAScript (JavaScript)
CSS Hex Color Regex for JS Supports alpha value (4 and 8 character hex codes) introduced in CSS Color Module Level 4 Well tested
Submitted by
anonymous
-
5 years ago
1
Python Float Verification
Python
no description available
Submitted by
anonymous
-
4 years ago
1
Extract fields from repository url
Python
It is used to extract fields from the repository URL Works in Python and JS Group1 : protocol (Such as http or https) Group2 : domain (Such as github.com or gitlab.com) Group3: Name space (Such as your personal namespace or project namespace) Group4: Project name (Such as your project name)...
Submitted by
anonymous
-
5 years ago
1
date_regex
Python
YYYYMMDD YYYY-MM-DD YYYY.MM.DD YYYY/MM/DD YYYY-M-D YYYY.M.D...
Submitted by
anonymous
-
4 years ago
(Last modified 6 months ago)
1
E.164 Phone Number Validator
ECMAScript (JavaScript)
Regex validator for the phone number based on E.164 standard
Submitted by
anonymous
-
5 years ago
1
NFL Fixtures for links
Python
no description available
Submitted by
anonymous
-
5 years ago
1
移除小程序云函数栈日志中的无效行
ECMAScript (JavaScript)
使其更已读
Submitted by
anonymous
-
5 years ago
1
look ahead and look behind
ECMAScript (JavaScript)
find number in string with look behind and look ahead
Submitted by
anonymous
-
5 years ago
1
Python:Match paragraphs separated by URL
Python
no description available
Submitted by
anonymous
-
5 years ago
1
Another X / Extra X / X more
Python
Extract phrases meaning "add X more of the previous item"
Submitted by
anonymous
-
5 years ago
1
Audio filename splitter
Python
This Python regex allows you to split an audio filename with the sintax Authors - Title (Text1) [Text2].extension into: Group 1: Authors Group 2: Title Group 3: Text1 Group 4: Text2 Group 5: .extension...
Submitted by
Eche L.A.
-
4 years ago
1
capture production
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
Catch react-like components using JS
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
Duco2
Python
no description available
Submitted by
anonymous
-
4 years ago
1
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
ECMAScript (JavaScript)
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
Submitted by
anonymous
-
4 years ago
1
身份证号, 支持1/2代(15位/18位数字)
ECMAScript (JavaScript)
身份证号, 支持1/2代(15位/18位数字)
Submitted by
anonymous
-
4 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
-
4 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
-
4 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
-
4 years ago
1
...
76
77
78
79
80
...
281
lines with 2 consecutive chars
1
Regular Expression
Python
r"
^.
*
(
.
)
\1
.
*
$
"
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
8 years ago