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 18,040 community submitted regex patterns...
2
full asshole
ECMAScript (JavaScript)
no description available
Submitted by
alex
-
10 years ago
2
Regex Capture String
PCRE (PHP <7.3)
Capture out Parts using regular expressions
Submitted by
Brandon
-
10 years ago
2
phone regex
ECMAScript (JavaScript)
Match phone number with extensions or not
Submitted by
Mélissa Dumont
-
10 years ago
2
Email validation
ECMAScript (JavaScript)
Very crude, but effective email validation.
Submitted by
Ryan Oaks
-
10 years ago
2
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
Jorge C.
-
10 years ago
2
facebook post embed code
PCRE (PHP <7.3)
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either, but it requires minimum a fb-post div.
Submitted by
kristian tanacs
-
10 years ago
2
Find any digits in string
Python
no description available
Submitted by
anonymous
-
10 years ago
2
URL
PCRE (PHP <7.3)
Matches the URL from the text to 95 percentage
Submitted by
Harinath
-
9 years ago
2
Spanish telephone number
ECMAScript (JavaScript)
Teléfonos del territorio de España. Se admiten teléfono de 9 cifras que empiecen por 9, 7 ó 6. Opcionalmente puede tener el prefijo de país siendo válidas las siguientes opciones: (+34) (0034) +34 0034 ...
Submitted by
toyeca
-
9 years ago
2
Replace REM by blank
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Grab all hyperlinks
PCRE (PHP <7.3)
no description available
Submitted by
Josh Bourke
-
9 years ago
2
SSN
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
Twitter user profile url pattern
PCRE (PHP <7.3)
Pattern that check your string to match Twitter user profile URL.
Submitted by
JSC Quatrodev
-
9 years ago
2
YouTube Iframe parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
password 1upper 1lower 1number 1specialcharater
ECMAScript (JavaScript)
fjk@1Qaa$
Submitted by
Anuswadh
-
9 years ago
2
END on new line
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Removes script tags
ECMAScript (JavaScript)
no description available
Submitted by
ghs
-
9 years ago
2
Remove script tags from code
PCRE (PHP <7.3)
Regular expression to remove only the tags from the code. The regular expression only removes the tags, not the JS code inside the tag.
Submitted by
IvenMS
-
9 years ago
2
Parse gMail: Get name and email addresses
ECMAScript (JavaScript)
get names and email address seperated out from comma seperated string received from gMail api
Submitted by
anonymous
-
9 years ago
2
Select first letter of words
PCRE (PHP <7.3)
Selects first letter of space separted word with exceptions. This allows bypassing 's and such. Forcing separating charter can be set at [\s&\/] $1: separating part...
Submitted by
anonymous
-
9 years ago
1
...
855
856
857
858
859
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(?ms)
(
\s
*
(
(?<privatekey>
-----BEGIN
.
*
PRIVATE
KEY-----
.
*
?
-----END
.
*
PRIVATE
KEY-----
)
|
(?<certificate>
-----BEGIN
CERTIFICATE-----
.
*
?
-----END
CERTIFICATE-----
)
)
\s
*
){2}
/
gm
Open regex in editor
Description
Identify and group Certificate and Private Key from a combination PEM file
Submitted by
@rbleattler
-
2 years ago