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,240 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
shortcode wordpress
PCRE2 (PHP >=7.3)
Wordpress shortcode regular expression
Submitted by
selik
-
2 years ago
2021-05-21 10:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PHP Multiline Error Log
PCRE2 (PHP >=7.3)
Matches multiline entries (e.g. those containing exception stack traces or just multiline values) in a PHP error log produced by error_log().
Submitted by
Anton Ukhanev
-
2 years ago
2021-05-27 11:58
(Last modified 2 years ago)
2021-05-28 10:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
the_100_720p_hun-eng_sln
PCRE2 (PHP >=7.3)
rss filter, deluge, ncore Episodes and Seasons
Submitted by
Klein
-
2 years ago
2021-05-28 12:47
(Last modified 2 years ago)
2021-05-28 13:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Persian words
PCRE2 (PHP >=7.3)
Regex for find persian letters in a string
Submitted by
Hamed Faryabi
-
2 years ago
2021-06-10 06:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegEx to add any valid US phone number inputs
PCRE2 (PHP >=7.3)
##examples of valid US phone number inputs *555-555-5555 *(555)555-5555 *(555) 555-5555 *555 555 5555...
Submitted by
@abhi00o7
-
2 years ago
2021-06-11 03:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Password requirements checker
PCRE2 (PHP >=7.3)
This regular expression allows you to simply check if a password matches with your conditions. By default it will require: 1 {1} uppercase letter [A-Z] or more 1 {1} lowercase letter [a-z] or more 1 {1} number [0-9] or more 1 {1} special character [@#$%^!&+=.\-_*] or more...
Submitted by
Pythack
-
2 years ago
2021-06-18 10:06
(Last modified 2 years ago)
2021-06-19 11:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Youtube video link regular expression
PCRE2 (PHP >=7.3)
This regular expression allows you to test strings to see if they are youtube video links.
Submitted by
Pythack
-
2 years ago
2021-06-18 10:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Youtube channel link regular expression
PCRE2 (PHP >=7.3)
Regular expression for youtube channels links.
Submitted by
Pythack
-
2 years ago
2021-06-18 10:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Binary code regular expression
PCRE2 (PHP >=7.3)
Regular expression for binary code.
Submitted by
Pythack
-
2 years ago
2021-06-19 12:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Départements Francais
PCRE2 (PHP >=7.3)
Validation de l'ensemble des 101 départements français, incluant la Haute-Corse et la Corse-du-Sud, chaque département d'outre-mer indépendamment, et 99 pour l'étranger
Submitted by
mioux
-
2 years ago
2021-06-24 11:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
phonebook
PCRE2 (PHP >=7.3)
remove all unwanted character from telephone numbers list
Submitted by
kp
-
2 years ago
2021-06-24 14:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE2 (PHP >=7.3)
test
Submitted by
tf
-
2 years ago
2021-06-25 09:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Instagram reel Id
PCRE2 (PHP >=7.3)
get instagram reels id
Submitted by
anonymous
-
2 years ago
2021-06-26 06:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Signature of UNIFI Protect in SPLUNK for DHCP
PCRE2 (PHP >=7.3)
Pulls the DHCP Command from SPLUNK output
Submitted by
anonymous
-
2 years ago
2021-06-27 07:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple Phone Number validation
PCRE2 (PHP >=7.3)
Default to 8 characters maxInput and minInput 14 characters Regular Expression ^(?![ -])(?!.[- ]$)(?!.[- ]{2})[0-9- ]+$ Allows digits 0-9, and the single white spaces and single hyphens - characters, but restricts the spaces and hyphens at the start, end, and repetitions between the value. Note...
Submitted by
Sowed Castelli
-
2 years ago
2021-06-27 13:59
(Last modified 2 years ago)
2021-06-27 14:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple email verification regex
PCRE2 (PHP >=7.3)
Regular Expression ^(?=a-z{5,40}$)[a-z0-9._-]{1,20}@(?:(?=[a-z0-9-]{1,15}\.)[a-z0-9]+(?:-[a-z0-9]+)*\.){1,2}[a-z]{2,6}$ By default, the app converts all the email value to lower case before validation. Please use regex101.com: email to analyse and validate the regex. The error message for an in...
Submitted by
Sowed Castelli
-
2 years ago
2021-06-27 13:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple ID verification
PCRE2 (PHP >=7.3)
Used to validate documents identifiers like passports and IDs, VISA numbers. Default to 6 characters min and max 30 characters for format tin-no, such as the Tax regisration number.- Regular Expression ^[a-zA-Z0-9 ]{6,30}$ Accepts both lowercase and uppercase letters, from a-z, digit, and white s...
Submitted by
Sowed Castelli
-
2 years ago
2021-06-27 13:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple TIN number regex
PCRE2 (PHP >=7.3)
Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences.
Submitted by
Sowed Castelli
-
2 years ago
2021-06-27 13:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple TIN number regex
PCRE2 (PHP >=7.3)
Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences. The length of the input is limited by the app.
Submitted by
Sowed Castelli
-
2 years ago
2021-06-27 14:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Person NAME verification
PCRE2 (PHP >=7.3)
Regular Expression ^[a-zA-Z ]{2,30}$ Allow only letters and space between each characters to support for multi word single name. Only accepts english letter characters.
Submitted by
Sowed Castelli
-
2 years ago
2021-06-27 14:21
1
2
3
4
5
6
7
8
...
112
URLs and Emails RegEx
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
\-
_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
"
ig
Open regex in editor
Description
Loading markdown...
Submitted by
kosalanuwan
-
a year ago
2022-08-08 16:36