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,560 community submitted regex patterns...
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Task 4 Quiz
PCRE2 (PHP >=7.3)
It needs a major modification, since matching an integer is required. The accepted answer \d+ involves only "positive" integers. But -333 or +777 are also integers, which leads to two possible solutions with the last one being the most accurate: -?\d+ : The hyphen (optional minus sign) and a digit ...
Submitted by
seQuienSoy
-
a year ago
2022-10-21 23:39
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)
Regular expression for capturing dates and date ranges.
Java 8
A proof of concept regex that captures dates and date ranges with a variety of separators. Works with both DMY and MDY, and if one is not needed, it can be easily deleted from the regex. The full variety of months needs to be implemented by the programmer themselves since developing it in regex101...
Submitted by
Matey Krastev
-
2 years ago
2022-04-07 20:19
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
-
2 years ago
2022-06-08 15:30
(Last modified 2 years 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
2
3
4
5
6
7
...
128
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