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 17,920 community submitted regex patterns...
0
match name and surname in a name.surname@domain.com email.
Java 8
This will match any words that show up before the @ sign in an email. Digits, dots, commasz and other special characters are ignored.
Submitted by
WojciechW
-
2 years ago
0
Javascript HTTP URL Validation
PCRE2 (PHP >=7.3)
Use to validate basic website URLs with or without http://. I took bits and pieces of other regexes I found and compiled into one that worked well for my purposes.
Submitted by
Daniel Ecker
-
2 years ago
0
Function call capture group
Python
Function call capture group
Submitted by
anonymous
-
2 years ago
0
Get anything between parentheses
PCRE (PHP <7.3)
Use to get any character, digit or space between parentheses
Submitted by
Vini Pereira
-
2 years ago
0
unit selector regex
PCRE2 (PHP >=7.3)
This regex can be used to select SI units of gallon, litres, kilograms, kilometres, pounds.
Submitted by
anonymous
-
2 years ago
0
REGEX yt-dlp ID
PCRE2 (PHP >=7.3)
Get ID from plain text fromm yt-dlp
Submitted by
anonymous
-
2 years ago
0
XTrim
PCRE2 (PHP >=7.3)
Remove spaces at the beginning and end of a sentence. It also replaces N consecutive spaces with a single one.
Submitted by
abrittaf
-
2 years ago
0
简单日志匹配
Java 8
普通日志匹配, 匹配出字段: [time, level, logClass, content]
Submitted by
qinxike
-
2 years ago
0
Regex Tutorials CodeAmooz.net
PCRE2 (PHP >=7.3)
Regex Tutorials CodeAmooz.net
Submitted by
anonymous
-
2 years ago
0
letter-space-number.js
PCRE2 (PHP >=7.3)
Javascript piscine
Submitted by
erik044
-
2 years ago
0
Valid date (DD-MM-YYYY) from 1900 to 2099
Java 8
Valid date (DD-MM-YYYY) from 1900 to 2099
Submitted by
Nevix-Sama
-
2 years ago
0
idk
ECMAScript (JavaScript)
one
Submitted by
anonymous
-
2 years ago
0
Match for equ
ECMAScript (JavaScript)
Matching for equation
Submitted by
anonymous
-
2 years ago
0
vishnu
Python
log regex
Submitted by
vishnu kendre
-
2 years ago
0
Filter Hashtags and Links in a string
PCRE2 (PHP >=7.3)
Filter Hashtags and Links in a string
Submitted by
Akali
-
2 years ago
0
Filter Hashtags in a string
PCRE2 (PHP >=7.3)
Filter Hashtags in a string
Submitted by
Akali
-
2 years ago
0
Filter Links in a string
PCRE2 (PHP >=7.3)
Filter Links in a string
Submitted by
Akali
-
2 years ago
0
Photos18 Url Matcher
Python
A regex to match photos18 urls
Submitted by
anonymous
-
2 years ago
0
commitlint gitmoji
ECMAScript (JavaScript)
commitlint to cz-emoji-conventional
Submitted by
anonymous
-
2 years ago
0
Filter Vietnamese Hashtags in a string
PCRE2 (PHP >=7.3)
Filter Vietnamese Hashtags in a string
Submitted by
Akali
-
2 years ago
(Last modified 2 years ago)
1
...
869
870
871
872
873
...
896
async calls in foreach
0
Regular Expression
PCRE2 (PHP >=7.3)
/
foreach
\(
(?<loop>
[
a
-
zA
-
Z0
-
9-.
_
\(\)
]
+
)
\n
{
(?<code1>
[
a
-
zA
-
Z0
-
9-.
_
\;
\n
(
\)
{}
]
+
)
await
(?<code2>
[
a
-
zA
-
Z0
-
9-.
_
\;
\n
(
\)
{}
]
+
)
}
/
gm
Open regex in editor
Description
async calls in foreach loop, search by await keyword found in foreach
Submitted by
mmateeva
-
a year ago