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 12,840 community submitted regex patterns...
1
Docker image tag with named groups
ECMAScript (JavaScript)
Named groups, port in registry, sha256
Submitted by
petersamokhin with help from https://stackoverflow.com/questions/39671641
-
2 years ago
1
Select Markdown Text and content
ECMAScript (JavaScript)
This expression selects any square brackets and the content inside it. Exemple: [DataTransfer] []...
Submitted by
innnerception
-
2 years ago
1
Group first letter, Group Remaining letters, Group White space
PCRE (PHP <7.3)
first groups all white space $1 second groups all first letter of every word except capitals third groups remaining letters
Submitted by
slimelord
-
2 years ago
1
Function for LScript
ECMAScript (JavaScript)
RegEx for finding function in LScript programming language
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
Function creation in LScript
ECMAScript (JavaScript)
RegEx for finding creation of a function in LScript programming language
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
Function argument in LScript
ECMAScript (JavaScript)
RegEx for finding each argument when creating a function in LScript programming language
Submitted by
anonymous
-
2 years ago
1
URL Parts Extractor
ECMAScript (JavaScript)
Extracts parts of an URL into regex groups: ((?:(?:http|ftp|ws)s?|sftp):\/\/?)?(group 1): extracts the protocol (+\.+|localhost)(group 2): extracts the hostname (:\d+)?(group 3): extracts the port number ((?:\/\w+)\/)?([\w\-.]++)?(groups 4 & 5)*: extracts the path part (+)?(group 6): extracts the qu...
Submitted by
Elie Grenon (elie-g)
-
2 years ago
1
Timestamps
ECMAScript (JavaScript)
Recognizes timestamps with the technical timestamp format.
Submitted by
Alejandro, Andreu
-
2 years ago
(Last modified 2 years ago)
1
Matching CSS Properties
ECMAScript (JavaScript)
CSS Properties
Submitted by
Luidenka
-
2 years ago
1
Email with special characters
ECMAScript (JavaScript)
Built using this specification
Submitted by
studium-inexorabile
-
2 years ago
1
Word boundary with umlauts
ECMAScript (JavaScript)
Word boundary \b does not support umlauts.
Submitted by
StephanGeorg
-
2 years ago
1
Only if before
PCRE (PHP <7.3)
Only if needle is before target
Submitted by
anonymous
-
2 years ago
1
Secret HTML Comment
PCRE (PHP <7.3)
This REGEX can be used for, e.g., PHP scripts to filter out comments that are only important for development.
Submitted by
anonymous
-
a year ago
1
Match last repetition and remove it
ECMAScript (JavaScript)
Remove the last repetition of a on texts like: a b c d a e f g
Submitted by
Icaruk
-
a year ago
1
URL Validator (HTTP and HTTPS)
PCRE (PHP <7.3)
Validate one URL HTTP and HTTPS
Submitted by
Joaquim
-
a year ago
1
Extract email username from email address
ECMAScript (JavaScript)
This workspace contains the needed ECMAScript regex for use in Cloudflare Workers Email Routing.
Submitted by
~ajhalili2006
-
a year ago
1
Match typescript filenames excluding .d.ts files
ECMAScript (JavaScript)
Match typescript filenames excluding .d.ts files This RegExp matches, ts tsx...
Submitted by
@yumyum-web
-
a year ago
1
Replace ^ with Math.pow function. Not made to work with braces.
Java 8
Replaces ^ with Math.pow function call. This assumes all braces have been combined first. If you need help with the combination, I got you—try this Python algorithm: def evaluate_braces(expr): """Recursively evaluate expressions within braces""" Check if expression contains braces if '(' in...
Submitted by
Glitchii - https://github.com/Glitchii
-
a year ago
(Last modified a year ago)
1
Finnish SSN (2023 update)
ECMAScript (JavaScript)
Finnish SSN that supports the new intermediate characters that were added on 1.1.2023. Source for the new intermediate characters: https://dvv.fi/hetu-uudistus (in Finnish) https://dvv.fi/en/reform-of-personal-identity-code (in English)
Submitted by
mpeltola
-
a year ago
1
Email finder
Java 8
Matches with the valid email addresses.
Submitted by
anonymous
-
a year ago
1
...
230
231
232
233
234
...
642
Function creation in LScript
1
Regular Expression
ECMAScript (JavaScript)
/
(
private
|
public
)
(
[
A
-
Za
-
z_
]
[
A
-
Za
-
z_0
-
9.
]
*
)
?
\(
(
(
.
*
,
)*
.
*
)
\)
?
\{
(
.
*
)
\}
/
gm
Open regex in editor
Description
RegEx for finding creation of a function in
LScript
programming language
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)