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 2,620 community submitted regex patterns...
1
Content between 2 tag
Python
(?)([a-zA-Z\s\w]+)(?=) get content between tags
Submitted by
anonymous
-
6 years ago
1
matching-search-queries-at-end
Python
This regex will match search queries formatted in 3 specific patterns.
Submitted by
anonymous
-
6 years ago
1
URL matching with HTTP(s) and IPv4 with Port
Python
no description available
Submitted by
anonymous
-
5 years ago
1
Test e-mail format string
Python
Regexp based on https://en.wikipedia.org/wiki/Email_address criteria.
Submitted by
anonymous
-
5 years ago
1
Python Float Verification
Python
no description available
Submitted by
anonymous
-
5 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 9 months ago)
1
NFL Fixtures for links
Python
no description available
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
IPv4 private CIDR range RFC1918
Golang
Validates that you provide a CIDR in one of the following valid ranges. 0.0.0 – 127.255.255.255 127.0.0.0/8 0.0.0 – 10.255.255.255 10.0.0.0/8 16.0.0 – 172. 31.255.255 172.16.0.0/12 192.168.0.0 – 192.168.255.255 192.168.0.0/16...
Submitted by
David Stockton
-
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.
-
5 years ago
1
Duco2
Python
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
-
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
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
day date time
Python
no description available
Submitted by
anonymous
-
4 years ago
1
C# Variable Signature
Python
Used for extracting information from doxygen. Handles: modifiers type, with generics name...
Submitted by
anonymous
-
4 years ago
1
s3_date_select
Python
no description available
Submitted by
anonymous
-
4 years ago
1
...
112
113
114
115
116
...
131
Community Library Entry
2
Regular Expression
Python
r"
[
\w
'
-
.
]
+
\w
|
[
\w
'-
]
+
\s
*
"
Open regex in editor
Description
Matches words without external punctuation but with internal punctuation.
Submitted by
anonymous
-
9 years ago