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 2,500 community submitted regex patterns...
1
Duco2
Python
no description available
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
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
Remove leading zero from addresses
Python
Used to clean address data for simulation.
Submitted by
anonymous
-
4 years ago
1
Amazon Resource Name (ARN) pattern with a named group for each component
Python
A pattern to parse Amazon Web Services ARNs into their varying components: Partition Service Region AccountID...
Submitted by
Arnoud
-
4 years ago
1
filenamewhitlist
Python
no description available
Submitted by
anonymous
-
4 years ago
1
Find and replace character in a string by postion
Python
Originally did this for adding random typos to string values for a lab assignment.
Submitted by
anonymous
-
4 years ago
1
oracle_string_content_individuation
Python
no description available
Submitted by
anonymous
-
4 years ago
1
not match numbers followed by a certain character
Python
no description available
Submitted by
anonymous
-
4 years ago
1
NewWheel
Python
no description available
Submitted by
anonymous
-
4 years ago
1
NewWheel
Python
no description available
Submitted by
anonymous
-
4 years ago
1
Address capture
Python
Complex address component capturing regex
Submitted by
anonymous
-
4 years ago
1
MBUS Line
Python
MBUS regex, with updated speed
Submitted by
anonymous
-
4 years ago
1
U.S. phone number format: XXX-XXX-XXXX
Python
no description available
Submitted by
anonymous
-
4 years ago
1
Egyptian Phone Number Format
Python
This regex extract all the phone number (Egyptian Format: xxx xxxx-xxxx)
Submitted by
anonymous
-
4 years ago
1
...
109
110
111
112
113
...
125
C# Variable Signature
1
Regular Expression
Python
r"
^\s
*
(?P<modifiers>
(?:
\s
*
(?:
private
|
const
|
static
)
)*
)
\s
*
(?P<fulltype>
(?P<type>
[^
\s
<
\[
{
]
+
)
\s
*
(?P<generics>
<
\s
*
.
+
\s
*
>
)?
)
\s
+
(?P<name>
[^
\s
<{
]
+
)
\s
*
(?:
=
\s
*
(?P<value>
.
+
)
)?
$
"
gm
Open regex in editor
Description
Used for extracting information from doxygen.
Handles:
modifiers
type, with generics
name
default value
Support for generics is limited
Submitted by
anonymous
-
4 years ago