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 9,520 community submitted regex patterns...
1
Search tags "a" and get link and text from tags
PCRE (PHP <7.3)
Search group "link=>text" in tags "a"
Submitted by
Andy
-
9 years ago
2
Match 3 Repeating Numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
WindowsUpdate.log Line Breaker
PCRE (PHP <7.3)
This regex defines the end and the beginning of a WindowsUpdate.log event.
Submitted by
Dion Pezzimenti
-
9 years ago
1
OpenSSL certificates ASCII match all in chain
PCRE (PHP <7.3)
Match all certificate in a chain from a OpenSSL s_client output. Need for this come from a script that should be able to verify the root CA of a URL.
Submitted by
Evgeni Simeonov
-
9 years ago
1
Valida RFC mexicano
PCRE (PHP <7.3)
valida el formato del registro federal de contribuyentes de México.
Submitted by
Rogelio
-
9 years ago
1
Search regex
PCRE (PHP <7.3)
/** this regex should match most cases where the user forgets to put an operator somewhere and add an OR, it still does not handle nested square brackets but those are invalid anyways this page has an explanation https://regex101.com/r/fF7wO1/2 * the way this regex grabs conflicting matches is b...
Submitted by
warnock
-
9 years ago
-2
6 Digit ID
PCRE (PHP <7.3)
Very basic. My first proper REGEX. 6 Digit ID starting with e. Must be lowercase. must start with an e (can change to another letter)
Submitted by
BejasC#
-
9 years ago
1
count occurence of comma
PCRE (PHP <7.3)
no description available
Submitted by
Kevin H
-
9 years ago
2
Beautiful Regex for detecting Slack URL's
PCRE (PHP <7.3)
just lovely
Submitted by
the boiz aka ben and chris
-
9 years ago
0
Remove all html tags
PCRE (PHP <7.3)
no description available
Submitted by
thebigsmileXD
-
9 years ago
2
Password Log
PCRE (PHP <7.3)
Matches a password that has been passed in as a url query parameter or in a post dictionary.
Submitted by
Anthony Miller
-
9 years ago
1
starts with abc, has 123 and ends with xyz
PCRE (PHP <7.3)
#starts with abc, has 123 and ends with xyz abc123xyz
Submitted by
Kifah
-
9 years ago
0
Select or locate the last underscore (or dot, etc) in a string
PCRE (PHP <7.3)
This string can help you locate/select the last underscore in a string
Submitted by
Hao
-
9 years ago
0
Facebook profile URL pattern
PCRE (PHP <7.3)
Pattern that check your string to match Facebook user profile URL.
Submitted by
JSC Quatrodev
-
9 years ago
2
File name without extension from linux path
PCRE (PHP <7.3)
If given a linux file path match the filename without the extension. It extracts FileNameWithoutExtension into its own match group so that you can use it in things like Logstash Grok.
Submitted by
Chris Magnuson, by combining other peoples starting points
-
9 years ago
2
update match
PCRE (PHP <7.3)
no description available
Submitted by
ozarzu
-
9 years ago
0
Validar registro de pregunta
PCRE (PHP <7.3)
Valida las posibles respuestas al insertar una pregunta, esto se realiza ya que las respuestas se ordenan aleatoriamente, por eso no se permite respuestas del tipo "A y B son correctas"
Submitted by
ZeusAFK
-
9 years ago
-2
12 Hour Time Pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
English-Hungarian (non-/)obfuscated email adresses
PCRE (PHP <7.3)
Finds email addresses even when cleverly obfuscated in both english and hungarian
Submitted by
WolfyD
-
9 years ago
2
mask the credit card number
PCRE (PHP <7.3)
no description available
Submitted by
vj
-
9 years ago
1
...
28
29
30
31
32
...
476
Nato Stock Number (Add dashes)
2
Regular Expression
PCRE (PHP <7.3)
/
(
\d
{4}
)
(
\d
{2}
)
(
\d
{3}
)
(
\d
{4}
)
/
Open regex in editor
Description
Takes a 13 digit non-dashed Nato Stock Number and uses the Substitution to add the dashes in
Submitted by
Matthew Perryman
-
9 years ago