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 18,000 community submitted regex patterns...
0
Replace namespaces in xpath with local-name
.NET 7.0 (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
a year ago
0
Remove XML whitespace
PCRE2 (PHP >=7.3)
Removes whitespace around XML elements and trims the content
Submitted by
anonymous
-
a year ago
0
Match All Words Beginning With 'a'
PCRE2 (PHP >=7.3)
This code can be adapted to match any character or word in a list using a textbox as follows: "^[" & TextBox2.Text & "]\w+" However, for this to work the text in the main textbox needs to be made into a list replacing whitespaces, tabs, carriage returns, etc. with a carriage return. The list doesn...
Submitted by
anonymous
-
a year ago
0
latlonlatlon
PCRE (PHP <7.3)
gg
Submitted by
anonymous
-
a year ago
0
capture strings between starts and ends line
ECMAScript (JavaScript)
capture any strings between starts and ends line
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
test
ECMAScript (JavaScript)
test
Submitted by
anonymous
-
a year ago
-1
Discord name with both old and new name support
PCRE2 (PHP >=7.3)
This discord regex supports both the new and the old version of discord names. Old: NAME#[0001-9999] Between 2 and 32 characters....
Submitted by
Fy17
-
a year ago
0
PLDI regex 3
Python
for pldi answer
Submitted by
PlaceReporter99
-
a year ago
0
PLDI regex 2
Python
for pldi answer
Submitted by
PlaceReporter99
-
a year ago
0
PLDI regex 1
Python
For pldi answer
Submitted by
PlaceReporter99
-
a year ago
0
Dyno warning regex
Python
Used to separate things in dyno warning
Submitted by
anonymous
-
a year ago
0
UFUNCTION parser
PCRE2 (PHP >=7.3)
Breaks any UFUNCTION into parts
Submitted by
anonymous
-
a year ago
-1
url matcher 2.0
PCRE2 (PHP >=7.3)
now matches any protocol, as well as username, password, query and fragment. query is not split
Submitted by
Mitsunee
-
a year ago
0
Country Codes (Alpha 2 and Alpha 3)
PCRE2 (PHP >=7.3)
Country Code Classifier ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest. They ar...
Submitted by
loganmcampbell
-
a year ago
0
Hesla ISJ
Python
ISJ
Submitted by
anonymous
-
a year ago
0
100-4300
Python
match 100, 200, 300 upto 4300
Submitted by
anonymous
-
a year ago
0
webforms detection
PCRE2 (PHP >=7.3)
Rule to identify web form collections
Submitted by
Pandurang Patil
-
a year ago
0
async calls in foreach
PCRE2 (PHP >=7.3)
async calls in foreach loop, search by await keyword found in foreach
Submitted by
mmateeva
-
2 years ago
0
0及最多6位正负整数
ECMAScript (JavaScript)
1、匹配6位以内正负整数 2、可以匹配0 有效例子 0 21...
Submitted by
anonymous
-
2 years ago
0
Firstname Lastname (Western alphabet)
PCRE2 (PHP >=7.3)
A regular expression to validate Firstname Lastname, supports multiple names, de, le, O',L',l',d', prefixes.
Submitted by
remedio
-
2 years ago
1
...
55
56
57
58
59
...
900
Community Library Entry
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
-
2 years ago