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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Links
PCRE2 (PHP >=7.3)
Beginner way to highlight links
Submitted by
anonymous
-
2 years ago
2022-05-27 09:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Grab first sentence from multi-line text
PCRE2 (PHP >=7.3)
Using to extract PhpDoc summary. Note: PhpDoc must be trimmed at left (' ' and '*' are removed).
Submitted by
WinterSilence
-
2 years ago
2022-05-29 23:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Illumina sample ID regex
PCRE2 (PHP >=7.3)
regular expression for illumina sequencer sample ids. sample Ids are alpha numeric with no more than two dashes or underscores and no underscores or dashes in the beginning or end of the sample id.
Submitted by
anonymous
-
2 years ago
2022-06-01 13:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
13-16 digit credit card
PCRE2 (PHP >=7.3)
Finds a number that is 13-16 digits long. Can have spaces or hyphens in between the numbers and will still be found.
Submitted by
Spencer Curtis
-
a year ago
2022-06-08 15:30
(Last modified a year ago)
2022-06-08 15:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Detect zoom meeting links
PCRE2 (PHP >=7.3)
Find zoom links in text
Submitted by
Artyom Ivanov
-
a year ago
2022-06-10 07:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
UAE Emirates ID Number
PCRE2 (PHP >=7.3)
Validate an Emirates ID number, with or without dashes. Please note that this does not implement the Luhn Algorithm, which should be applied in conjunction with simple validation.
Submitted by
Pete Mahon
-
a year ago
2022-06-13 08:09
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)
IP Address
Java 8
(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by
anonymous
-
a year ago
2022-08-02 08:40
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
2
3
4
5
6
7
...
123
Match CamelCase
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(
[
a
-
z0
-
9
]
|
(?=
[
A
-
Z
]
)
)
(
[
A
-
Z
]
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2022-01-26 07:26