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,540 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
same vowel start & end
PCRE2 (PHP >=7.3)
/^[aeiou].*[aeiou]$/
Submitted by
anonymous
-
2 years ago
2022-04-01 12:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Domain Validator
PCRE2 (PHP >=7.3)
Regex to validate domain/website
Submitted by
Amir hossein Karimi
-
2 years ago
2022-04-04 13:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get first move and depth from Stockfish output
PCRE2 (PHP >=7.3)
Stockfish output contains longer form containing the square of departure. Buggy with anything other than pawn.
Submitted by
Stockcat
-
2 years ago
2022-04-14 16:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PHP PDO debugDumpParams parse as sql.
PCRE2 (PHP >=7.3)
解析php pdo 的 debugDumpParams 输出的数据。
Submitted by
anonymous
-
2 years ago
2022-04-15 14:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
refactoring
PCRE2 (PHP >=7.3)
for refactoring Kotlin tests
Submitted by
nikita.bols
-
2 years ago
2022-04-21 09:42
(Last modified 2 years ago)
2022-04-21 11:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract strings between 2 delimiters
PCRE2 (PHP >=7.3)
Extract strings between a delimiter (",") or between a tabulation and a cr Example : toto@gmail.com,yoda@testmail.fr,foo@dugenou.com This expression will return bold e-mails
Submitted by
anonymous
-
2 years ago
2022-04-21 13:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Imperva audit log regex
PCRE2 (PHP >=7.3)
Contains regex to parse the CockroachDB SQL audit log file
Submitted by
Lesley Miller
-
2 years ago
2022-05-05 04:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
command df -T on linux
PCRE2 (PHP >=7.3)
command df -T on linux udev devtmpfs 65928068 0 65928068 0% /dev tmpfs tmpfs 13190576 304608 12885968 3% /run /dev/mapper/pve-root ext4 98559220 50337808 43171864 54% / tmpfs tmpfs 65952876 46800 65906076 1% /dev/shm...
Submitted by
Saulo Costa
-
2 years ago
2022-05-10 18:47
(Last modified 2 years ago)
2022-05-10 18:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Custom Commit ReGex
PCRE2 (PHP >=7.3)
Custom Commit ReGex Test
Submitted by
Kewal Rathod
-
2 years ago
2022-05-24 14:57
(Last modified 2 years ago)
2022-05-24 15:08
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
2
3
4
5
6
7
...
127
Lxx Wurzel
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Golang
`
(
(
[
CTLS
]
[
1
-
9
]
+
)
\s
(
Wurzel
[
\w
]
*
)
)
`
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2020-08-07 05:44