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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 12,160 community submitted regex patterns...
0
Floating point number with optional positive/negative
PCRE2 (PHP >=7.3)
Basic matches an integer or floating point number with optional positive or negative signed.
Submitted by
Tony Le
-
4 years ago
0
Regex to replace SRC to DATA-SRC when class attribute contains lazy text
PCRE2 (PHP >=7.3)
This regex converts text like this: __ TO: __
Submitted by
Suman Maharjan
-
4 years ago
0
r-type single register
PCRE2 (PHP >=7.3)
for a comp arch assembler
Submitted by
anonymous
-
4 years ago
0
Replace Json value with key
PCRE2 (PHP >=7.3)
Find the key and replace it's value.
Submitted by
anonymous
-
4 years ago
0
Address
PCRE2 (PHP >=7.3)
grab address
Submitted by
anonymous
-
4 years ago
0
Semantic Versioning
Golang
Semantic versioning regex
Submitted by
anton-yurchenko
-
4 years ago
0
한글자만 남기고 중복글자 지우기
PCRE2 (PHP >=7.3)
한글자만 남기고 중복글자 지우기 ex) 강남역역역역 -> 강남역
Submitted by
anonymous
-
4 years ago
0
Get Client
PCRE2 (PHP >=7.3)
Parse Client type
Submitted by
ben
-
4 years ago
0
Json Starts With Keys
PCRE2 (PHP >=7.3)
Regex for checking if JSON starts with desired keys Useful for validating/filtering database entries when used in combination with SQL Like Example: Postgre: select * from table_name where column_json ~ '^\{[\s]\"(tab1|tab3|tab5)".'
Submitted by
MUA
-
4 years ago
0
Hora formato am/pm hh:mm am/pm
PCRE (PHP <7.3)
Valida el formato de hora hh:mm am/pm
Submitted by
Felipe silva
-
4 years ago
0
Capture Groups: Any number in between slashes followed by anything
PCRE2 (PHP >=7.3)
Two groups. One of digits in between slashes (e.g. '/5/') followed by any text
Submitted by
Leonardo Marcelino Vieira
-
4 years ago
0
reg
PCRE2 (PHP >=7.3)
reg
Submitted by
inj
-
4 years ago
0
get the matching text starting from [** to /.md
PCRE2 (PHP >=7.3)
get the matching text starting from [** to /.md
Submitted by
anonymous
-
4 years ago
0
Filter 4, 10 digits and email
Golang
Test
Submitted by
gert rohde
-
4 years ago
0
Parse Received header on email
PCRE2 (PHP >=7.3)
Parse Received header on email
Submitted by
anonymous
-
4 years ago
0
Match questions
PCRE2 (PHP >=7.3)
To debug pasted questions with options
Submitted by
anonymous
-
4 years ago
0
regex for the minute part of crontab
PCRE2 (PHP >=7.3)
hopefully matches all variations of the minute part of a crontab. working on the other parts soon
Submitted by
nick g
-
4 years ago
0
match all printable basic ASCII characters in c++
PCRE2 (PHP >=7.3)
match all printable basic ASCII characters in c++ #include #include #include ...
Submitted by
zhongmeng Yu
-
4 years ago
0
Match all words
PCRE2 (PHP >=7.3)
extracts all word char sequences from given text
Submitted by
anonymous
-
4 years ago
0
Match Dates
PCRE2 (PHP >=7.3)
extracts dates from text; Valid date format: dd-MMM-yyyy
Submitted by
anonymous
-
4 years ago
1
...
521
522
523
524
525
...
608
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
\+
(
[
0
-
9
]
{1,4}
)
(?:
\s
?
)
\(
(
[
0
-
9
]
{1,6}
)
\)
(?:
\s
?
)
(
[
0
-
9
]
{1,15}
)
(?:
\s
?
)
(?:
\-
?
)
(?:
\s
?
)
(
[
\-
0
-
9
]
{1,10}
)?
(?:
\s
?
)
/
g
Open regex in editor
Description
Test a given string for phone number variations and extract th parts.
Submitted by
anonymous
-
9 years ago