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,260 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
todos and tags in code
PCRE2 (PHP >=7.3)
todos and tags in code
Submitted by
anonymous
-
a year ago
2022-06-22 12:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Website validation
PCRE2 (PHP >=7.3)
This regex is for validating website url Only accept http and https With or without www With or without subdomain .com or dot any With any sub path...
Submitted by
anonymous
-
a year ago
2022-06-27 04:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex of name or a firstname
PCRE2 (PHP >=7.3)
Format detected: "Jean" OR "Jean-Pierre" OR "Jean-Marie-Pierre"...
Submitted by
Massinissa CHAOUCHI
-
a year ago
2022-06-29 17:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sri Lankan Land/Fixed-line Telephone Number Validation
PCRE2 (PHP >=7.3)
Sri Lankan Land/Fixed-line Telephone Number Validation This expression validates if a given value is a valid Sri Lankan fixed line / land line telephone number. Sri Lankan land line numbers starts from 0 and does not contain 7 in the 2nd digit, and is 10 digits in length. ...
Submitted by
Isuru Ranawaka
-
a year ago
2022-07-05 10:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sri Lankan Mobile Number Validation
PCRE2 (PHP >=7.3)
See https://en.wikipedia.org/wiki/Telephone_numbers_in_Sri_Lanka
Submitted by
Isuru Ranawaka
-
a year ago
2022-07-05 10:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Add commas between numbers
PCRE2 (PHP >=7.3)
This regex separates numbers with commas taking 0 into account.
Submitted by
anonymous
-
a year ago
2022-07-17 20:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex de validação de número celular e fixo | PHP (PCRE2)
PCRE2 (PHP >=7.3)
Regex validação número celular e fixo Somente números nacionais Com ou sem DDI 55 (com ou sem + e/ou 00) DDD obrigatório (com ou sem parênteses) Com ou sem Dígito 9...
Submitted by
Danillo Dantas
-
a year ago
2022-07-18 06:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
extract url from html markdown
PCRE2 (PHP >=7.3)
222
Submitted by
seocringe
-
a year ago
2022-07-20 14:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sri Lankan National Identity Card and Sri Lanka Identity Number validation
PCRE2 (PHP >=7.3)
Sri Lankans have two types of identifiation numbers. National Identity Card number Sri Lanka Identity Number National Identity Card number...
Submitted by
Isuru Ranawaka
-
a year ago
2022-07-26 07:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
S/O 73225392
PCRE2 (PHP >=7.3)
Replaces one style of markdown image with another
Submitted by
anonymous
-
a year ago
2022-08-03 17:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Conventional Commits Validation Regex
PCRE2 (PHP >=7.3)
This regex matches most of the rules of conventional commits .
Submitted by
Ahmed Kamal
-
a year ago
2022-08-13 19:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
{{ start and and tags }}
PCRE2 (PHP >=7.3)
Not allowing strings that start with {{ or and with }} or }}.
Submitted by
anonymous
-
a year ago
2022-08-23 14:59
(Last modified a year ago)
2022-08-24 14:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
url regex
PCRE2 (PHP >=7.3)
Submitted by
-
a year ago
2022-08-23 19:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
do_action and apply_filters name getter for Wordpress
PCRE2 (PHP >=7.3)
This will pluck out any do_action or apply_filters name in your code. Useful if you want to see what actions or filters have been added or deprecated between codebases, etc.
Submitted by
olie480
-
a year ago
2022-08-23 21:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
https://www.facebook.com/theking/
PCRE2 (PHP >=7.3)
Facebook Social media
Submitted by
anonymous
-
a year ago
2022-09-02 05:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
iCal
PCRE2 (PHP >=7.3)
iCal parser
Submitted by
Appenjel
-
a year ago
2022-09-02 19:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PowerShell RegEx - Renaming ROM Files in ROMs Directory
PCRE2 (PHP >=7.3)
Renaming ROM Files in ROMs Directory
Submitted by
MrMattiPants
-
a year ago
2022-09-05 02:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
find text in html
PCRE2 (PHP >=7.3)
for tp
Submitted by
anonymous
-
a year ago
2022-09-07 20:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
find all url in <a> in html
PCRE2 (PHP >=7.3)
for tp
Submitted by
anonymous
-
a year ago
2022-09-07 20:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
aadhar number
PCRE2 (PHP >=7.3)
Finds Aadhar number from given string
Submitted by
anonymous
-
a year ago
2022-09-08 13:46
1
2
3
4
5
6
7
...
113
Exclude particular word in phrase
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(?!
test
)
.
)*
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2021-02-16 08:53