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 4,660 community submitted regex patterns...
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
-
4 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
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
...
25
26
27
28
29
...
233
First Names
0
Regular Expression
Python
r"
^
[
a
-
zA
-
Z
\'\-\
]
{2,16}
$
"
gm
Open regex in editor
Description
First names
Allows for a hyphen
Allows for a space
Allows for a apostrophe
Submitted by
@thegamerbr1
-
4 years ago