Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 11,800 community submitted regex patterns...
1
gPat
PCRE2 (PHP >=7.3)
This is pre-built Global Pat for FortiSiem
Submitted by
Ken
-
2 years ago
1
Nginx Error Log Parser
PCRE2 (PHP >=7.3)
Parse nginx error logs with tags
Submitted by
anonymous
-
2 years ago
1
Email Match
PCRE2 (PHP >=7.3)
matches on emails.. try it
Submitted by
Singh
-
2 years ago
1
MyKad / Passport
PCRE2 (PHP >=7.3)
This allows only the specified characters to be a valid MyKad or Passport Number in Malaysia.
Submitted by
Munirul Haikal
-
2 years ago
1
Grabbing custom structure from markdown
PCRE2 (PHP >=7.3)
:)
Submitted by
anonymous
-
2 years ago
1
same vowel start & end
PCRE2 (PHP >=7.3)
/^[aeiou].*[aeiou]$/
Submitted by
anonymous
-
2 years ago
1
Domain Validator
PCRE2 (PHP >=7.3)
Regex to validate domain/website
Submitted by
Amir hossein Karimi
-
2 years ago
1
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
1
PHP PDO debugDumpParams parse as sql.
PCRE2 (PHP >=7.3)
解析php pdo 的 debugDumpParams 输出的数据。
Submitted by
anonymous
-
2 years ago
1
refactoring
PCRE2 (PHP >=7.3)
for refactoring Kotlin tests
Submitted by
nikita.bols
-
2 years ago
(Last modified 2 years ago)
1
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
1
solidity version detections
PCRE (PHP <7.3)
Given example text in 0.6.12+commit.27d51765. Now we need to extract the version number from the text.
Submitted by
jjhesk
-
2 years ago
1
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
1
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
(Last modified 2 years ago)
1
Custom Commit ReGex
PCRE2 (PHP >=7.3)
Custom Commit ReGex Test
Submitted by
Kewal Rathod
-
2 years ago
(Last modified 2 years ago)
1
Links
PCRE2 (PHP >=7.3)
Beginner way to highlight links
Submitted by
anonymous
-
2 years ago
1
Match range [1 ... 9999.99]
PCRE (PHP <7.3)
This helps matching numbers where decimals are optional
Submitted by
AndrewEastwood
-
2 years ago
1
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
1
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
1
Polynom
PCRE (PHP <7.3)
Regex to get polynomial coefficients
Submitted by
Balandin Igor
-
2 years ago
1
...
523
524
525
526
527
...
590
Data URL
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
data:
(?<type>
[
\w
\/\-\.
]
+
)?
(?:
;
(?<encoding>
\w
+
)
)?
,
(?<data>
.
*
)
/
gm
Open regex in editor
Description
Parsing of Data URLs
Submitted by
anonymous
-
2 years ago