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 13,740 community submitted regex patterns...
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Find Markdown links, but not image
PCRE (PHP <7.3)
no description available
Submitted by
Chuck
-
8 years ago
2015-12-06 02:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Fetch facebook id/slug from url
PCRE (PHP <7.3)
use part 6
Submitted by
AlmogBaku
-
8 years ago
2015-12-05 21:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
?M ?L ?A
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-05 14:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
signal
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-12-05 10:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
message
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-12-05 10:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
http request
PCRE (PHP <7.3)
no description available
Submitted by
Jonathan Rubin Yaniv
-
8 years ago
2015-12-05 10:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Music Notes
PCRE (PHP <7.3)
regex that identifies music notes written with A, B, ..., A#, C#, ... Ab, Bb, ... notation.
Submitted by
anonymous
-
8 years ago
2015-12-05 02:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
general script detection
PCRE (PHP <7.3)
This is a input regex for invaliding inputs that are likely to be scripts. this is a way to hidder xss attacks on your web application and api.
Submitted by
ivan
-
8 years ago
2015-12-05 00:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex for the brazilian CNPJ
PCRE (PHP <7.3)
A regex for the brazilian document named of CNPJ (Cadastro Nacional de Pessoa Jurídica)
Submitted by
André Ramos (github.com/andrelramos)
-
8 years ago
2015-12-04 21:12
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Brazilian Telephone Regex
PCRE (PHP <7.3)
A regex for brazilian telephones
Submitted by
André Ramos (github.com/andrelramos)
-
8 years ago
2015-12-04 21:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
split by slash
PCRE (PHP <7.3)
no description available
Submitted by
Stephen
-
8 years ago
2015-12-04 19:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CC Validation and Tests
PCRE (PHP <7.3)
no description available
Submitted by
PRPLrs
-
8 years ago
2015-12-04 17:53
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
RFC Email address attempt
PCRE (PHP <7.3)
This looks to attempt to validate email addresses per the RFC. I don't know how accurate it is.
Submitted by
anonymous
-
8 years ago
2015-12-04 17:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Fanfiction.net Genres
PCRE (PHP <7.3)
Matches a string if it contains any of the valid FFN genres.
Submitted by
anonymous
-
8 years ago
2015-12-04 17:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
aws-elb-access-log
PCRE (PHP <7.3)
ELB log parser
Submitted by
Peker Mert Oksuz
-
8 years ago
2015-12-04 15:43
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Removes duplicate lines in text editor
PCRE (PHP <7.3)
"dot matches newline" must be activated. Search and replace by "" (empty string) removes duplicate lines anywhere in text. Example for Notepad++ use shown under http://stackoverflow.com/questions/3958350/removing-duplicate-rows-in-notepad
Submitted by
Stackoverflow user stema
-
8 years ago
2015-12-04 13:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/>
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 13:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IP:Port
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 12:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
to:192.168.20.55:80
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 11:40
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
last name|firstname|463
PCRE (PHP <7.3)
no description available
Submitted by
Chris
-
8 years ago
2015-12-04 09:37
1
...
580
581
582
583
584
585
586
...
687
Address Match
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Regular Expression
Python
r"
(?P<Address>
(?:
\d
+
\s
+
.
+
\s
+
(?:
st
|
street
|
ave
|
avenue
|
dr
|
drive
|
way
|
lane
)
\.
?
)
)
"
gi
Open regex in editor
Description
Loading markdown...
Submitted by
Awk
-
8 years ago
2015-11-16 15:43