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
Switching items in a database
PCRE (PHP <7.3)
This is from "Learning the Vi editor", chapter 6 page 96
Submitted by
anonymous
-
2 years ago
0
匹配多个引用格式
PCRE2 (PHP >=7.3)
匹配多个引用格式
Submitted by
anonymous
-
2 years ago
0
Task6.1
.NET 7.0 (C#)
simple mail regex
Submitted by
anonymous
-
2 years ago
0
Task6.2
.NET 7.0 (C#)
Telephone number regex
Submitted by
anonymous
-
2 years ago
0
Remove locale ending (en-XX to en)
PCRE2 (PHP >=7.3)
Remove locale ending (en-XX to en) Note: Use /g to test all locales.
Submitted by
davidgaroro
-
2 years ago
(Last modified 2 years ago)
0
Remove all whitespaces
PCRE2 (PHP >=7.3)
Remove all whitespaces. Note: Use /g to test all strings.
Submitted by
davidgaroro
-
2 years ago
0
post id
PCRE2 (PHP >=7.3)
pulls ids out of id-prefaced slugs
Submitted by
ben
-
2 years ago
0
get-time
PCRE2 (PHP >=7.3)
The get-time regex checks for the time format of a 12-hour clock, as follows: the hour is between 1 and 12, with no leading zero, followed by a colon, then minutes between 00 and 59, then an optional space, and then AM or PM, in upper or lower case
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
搜索第一个括号
PCRE2 (PHP >=7.3)
\(#.*?\)
Submitted by
Michael
-
2 years ago
0
Instagram post, reel, tv Regex for PHP
PCRE2 (PHP >=7.3)
Instagram post, reel, tv Regex for PHP
Submitted by
Vikas Kapadiya
-
2 years ago
0
Match URL (any beginning and domain extension)
PCRE2 (PHP >=7.3)
PS: It catches undesired strings if they have a dot in the middle, for example "test.test", because it's not checking if ".test" is a real domain extension. You can improve the solution by checking all the possible domain extensions: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
Submitted by
Vini Pereira
-
2 years ago
(Last modified 2 years ago)
0
Prime regex
PCRE2 (PHP >=7.3)
All characters have to be the same Matches non-primes
Submitted by
nopeless | u/kattskill
-
2 years ago
0
Strong password
ECMAScript (JavaScript)
The password must contain : Between 8 and 24 chars 1 lowercase 1 uppercase 1 number 1 special char...
Submitted by
valent1618
-
2 years ago
0
Tel
ECMAScript (JavaScript)
Match : '+' at start. ' ' | '.' | '-' between number. Between 7 and 24 numbers. Work with HTML5 pattern.
Submitted by
valent1618
-
2 years ago
0
get-time
PCRE2 (PHP >=7.3)
Suggest a RegEx to checks for the time format of a 12-hour clock, as follows: the hour is between 1 and 12, with no leading zero, followed by a colon, then minutes between 00 and 59, then an optional space, and then AM or PM, in upper or lower case
Submitted by
ali
-
2 years ago
0
Email Validation
ECMAScript (JavaScript)
invalid email abc abc.com valid email address abc@mail.com...
Submitted by
anonymous
-
2 years ago
0
audiomack
Python
valid url test for audiomack website
Submitted by
Abdullah Ibn Fulan
-
2 years ago
0
Exact match of a word in a phrase: the phrase must be composed by a single word
PCRE (PHP <7.3)
It will match if it's present only the exact word in a phrase, without any other words in the same sentence
Submitted by
anonymous
-
2 years ago
0
Audio and Video files
Python
Match *audio *and *video *files in python
Submitted by
anonymous
-
2 years ago
0
International names
PCRE2 (PHP >=7.3)
Regex for international names
Submitted by
Pierre Jochem
-
2 years ago
1
...
528
529
530
531
532
...
900
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
\x19
A
(
\d
*
)
d
\[
?
(
\d
*
)?
\]
?
(
.
*
)
-
(
\S
+
)
\s
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
\x0c
?
(
.
*
)?
\x18
|
\x19
A
(
\d
*
)
d
(
\S
*
)
\s
?
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
\x18
|
RECV,4,
(
\d
*
)
,
\[
?
(
\d
*
)?
\]
?
(
.
*
)
-
(
\S
+
)
\s
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
\%
?
0
?
C
?
(
.
*
)?
|
RECV,4,
(
\d
*
)
,
(
\S
*
)
\s
?
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
/
gm
Open regex in editor
Description
Working Regex
Submitted by
anonymous
-
6 years ago