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 11,680 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find valid SAS names
PCRE2 (PHP >=7.3)
https://www.sfu.ca/sasdoc/sashtml/lrcon/z0998953.htm#z0998951
Submitted by
ABANTR
-
9 months ago
2023-03-14 13:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
email
PCRE2 (PHP >=7.3)
validate email
Submitted by
anonymous
-
9 months ago
2023-03-14 13:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove all html from string
PCRE (PHP <7.3)
Remove all tags and special character such as
Submitted by
enrico mosca
-
9 months ago
2023-03-14 11:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get Filename from Content-Disposition Header
PCRE2 (PHP >=7.3)
Extract Download Filename from Content-Disposition Header
Submitted by
thegass
-
9 months ago
2023-03-14 08:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
URL filter out of a shell script file, inc URLs with ";"
PCRE2 (PHP >=7.3)
URL filter out of a shell script file, inc URLs with ";" in the POST part
Submitted by
MaxPeal
-
9 months ago
2023-03-14 06:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
PAN Number (India)
PCRE2 (PHP >=7.3)
Format of PAN Number (issued in India)
Submitted by
anonymous
-
9 months ago
2023-03-14 05:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex for matching French Phone Numbers
PCRE2 (PHP >=7.3)
This is an expression that will match French Phone numbers You can modify this expression to help you match your needs.
Submitted by
anonymous
-
9 months ago
2023-03-13 19:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
my_device_usage
PCRE2 (PHP >=7.3)
usage
Submitted by
Keith
-
9 months ago
2023-03-13 16:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Device_name
PCRE2 (PHP >=7.3)
doesn't process road warrior or dubi location dubii missing interface?
Submitted by
Keith
-
9 months ago
2023-03-13 16:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
log filter 01
PCRE2 (PHP >=7.3)
expression for removing unnecessary information
Submitted by
ndeans
-
9 months ago
2023-03-13 15:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ip address
Java 8
ip address regex
Submitted by
shyam
-
9 months ago
2023-03-13 14:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Σ = {0, 1}. Cadenas de longitud impar ≥ 3 formadas por ceros y unos alternados.
PCRE2 (PHP >=7.3)
Cadenas de longitud impar ≥ 3 formadas por ceros y unos alternados.
Submitted by
JCMM
-
9 months ago
2023-03-12 19:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
bs-icons
PCRE2 (PHP >=7.3)
dwa
Submitted by
anonymous
-
9 months ago
2023-03-12 14:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UTC+
PCRE2 (PHP >=7.3)
Match {space}UTC+{number}
Submitted by
yedrup
-
9 months ago
2023-03-12 11:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Telephone
PCRE2 (PHP >=7.3)
\+7\s\(\d{3}\)\s\d{3}\s\d{2}\-\d{2}
Submitted by
anonymous
-
9 months ago
2023-03-11 18:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SSN Finder
PCRE2 (PHP >=7.3)
([0-7]\d{2}(" "|-|\.)?\d{2}(?(2)(" "|-|\.))\d{4}) Finds the first number as 0-7 then matches the next two digits Will check what delimitator (group 2) if any is used finds two digits if a delimitator is used - if it is then use one here, if not then don't (prevents US based zip code + 4 from getti...
Submitted by
ACCS
-
9 months ago
2023-03-11 14:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search for URL
PCRE2 (PHP >=7.3)
Searches the string for valid URLs. Includes HTTP, HTTPS, and localhost with it's port.
Submitted by
Evan Wilson
-
9 months ago
2023-03-10 21:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validar identificación
PCRE2 (PHP >=7.3)
Solo se admiten numeros, sin espacios al inicio o fin
Submitted by
anonymous
-
9 months ago
2023-03-10 14:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validar Nombres
PCRE2 (PHP >=7.3)
Sin espacio al inicio o fin, sin caracteres especiales
Submitted by
Brahian Torres
-
9 months ago
2023-03-10 14:51
(Last modified 5 months ago)
2023-06-22 14:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace multiple spaces to single space.
PCRE2 (PHP >=7.3)
/preg_replace('!\s+!', ' ', $s)/gm
Submitted by
anonymous
-
9 months ago
2023-03-09 19:51
1
...
24
25
26
27
28
29
30
...
584
수량자 실습
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
input
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
ASJ
-
10 months ago
2023-02-06 08:15