Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 2,460 community submitted regex patterns...
-4
0 upvotes, 4 downvotes (score 0%) (You must be signed in to vote)
Working With Data regex sample text
PCRE2 (PHP >=7.3)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-
2 years ago
2021-10-27 18:45
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Eide Chrysler New Goal
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-02 00:42
(Last modified 3 years ago)
2021-02-02 00:44
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Url regex
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-14 19:11
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Exclude particular word in phrase
PCRE2 (PHP >=7.3)
this will exclude particular phrase from a line. means it will match only those line which dont have those word
Submitted by
anonymous
-
3 years ago
2021-02-16 08:53
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
LinuxOSVersion
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-16 10:33
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
From conf table to hive table
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-18 19:33
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
smargs
PCRE2 (PHP >=7.3)
smargs not margins
Submitted by
rkatz
-
3 years ago
2021-03-16 00:05
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Conventional Commits commit regex
PCRE2 (PHP >=7.3)
https://www.conventionalcommits.org/en/v1.0.0/
Submitted by
Michael Collins
-
2 years ago
2022-01-31 00:53
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Ascending and Descending order
Java 8
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-
4 months ago
2023-07-17 15:51
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
PCRE2 (PHP >=7.3)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
Submitted by
anonymous
-
2 years ago
2022-05-19 21:05
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
1
PCRE2 (PHP >=7.3)
1
Submitted by
anonymous
-
2 years ago
2022-05-24 08:21
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
213
PCRE2 (PHP >=7.3)
12312
Submitted by
anonymous
-
2 years ago
2022-05-24 08:24
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
slug numeric
PCRE2 (PHP >=7.3)
pattern to validate a slug with numbers
Submitted by
mestri.rodrigo
-
a year ago
2022-06-01 14:27
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
is
PCRE2 (PHP >=7.3)
Hi it is me
Submitted by
anonymous
-
a year ago
2022-06-10 15:29
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Match Consonants
PCRE2 (PHP >=7.3)
Use regex to test whether a letter is a consonant or not. Use /[B-DF-HJ-NP-TV-Z]/ for capitals.
Submitted by
Matthew Hiebing
-
a year ago
2022-06-10 19:58
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Bluerose order-code
PCRE2 (PHP >=7.3)
order-code 20220623-19563352 20220623-18261367 20220606-15484894 20220606-15484 20220606...
Submitted by
anonymous
-
a year ago
2022-07-15 18:57
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
IP6 Validator Address (Simple)
PCRE2 (PHP >=7.3)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-
a year ago
2022-10-30 06:44
(Last modified a year ago)
2022-10-30 06:45
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
phone
PCRE2 (PHP >=7.3)
regex for phone
Submitted by
anonymous
-
10 months ago
2023-02-07 09:37
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
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
-
6 months ago
2023-05-20 15:49
-1
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
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
-
6 months ago
2023-05-22 07:39
1
2
3
4
...
123
AsciiDoc delimited block sidebar
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
(?m)
^
\*
{4}
[
\r\n
]
(
[
\s\S
]
+
?
(?=
^
\*
{4}
[
\r\n
]
)
)
^
\*
{4}
[
\r\n
]
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
aisbergde
-
a year ago
2022-10-08 17:26
(Last modified a year ago)
2022-10-10 10:05