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,020 community submitted regex patterns...
1
question regarding "split" like regex group
PCRE (PHP <7.3)
dear all, i am a regex beginner, so please be gentle :) we have lines of log contents delimited by a pipe char. is it possible to fetch the content between the 5th and the 6th delimiter, ignoring the values in between? example log line:...
Submitted by
regexBeginner
-
10 years ago
3
how to match both lines?
Python
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
10 years ago
-2
Matching HTML attributes
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
-3
Match substitutions
Python
Match regular expressions substitutions, I personally use this to perform my validate if it is a substitution, then call re.sub() on it.
Submitted by
Zarthus
-
10 years ago
2
Match subset
PCRE (PHP <7.3)
no description available
Submitted by
Jason
-
10 years ago
2
Creditcard expiry date checker
PCRE (PHP <7.3)
Checks if a expiry date is: mm/yy. You still have to check if it is a valid expiry date timewise.
Submitted by
Pevawi
-
10 years ago
1
quotes and escapes
PCRE (PHP <7.3)
no description available
Submitted by
zgorawski
-
10 years ago
-2
Password filter
PCRE (PHP <7.3)
a regular expression validate the passowrd. The criteria is that the password should contain atleast one upper case and one lower case letter.
Submitted by
HMK
-
10 years ago
2
Javascript: howto get rid of resulting ""
ECMAScript (JavaScript)
Hey folks, I try to do smth like this: var s = 'this is a "" && "string constant" and this "is another" one', result = s.match(new RegExp('"{1}(.*?)"{1}', 'g')); console.log(result);...
Submitted by
anonymous
-
10 years ago
0
filename split
ECMAScript (JavaScript)
Splitting file names
Submitted by
Miloš Ratković
-
10 years ago
-2
Basic grammar for regex matching of simplistic Makefiles
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-
10 years ago
-2
Regex for 1 to 100 with or without decimal values
ECMAScript (JavaScript)
no description available
Submitted by
Ved
-
10 years ago
2
Match number in html
ECMAScript (JavaScript)
Prevent matching in markup attributes
Submitted by
Mathieu Civel
-
10 years ago
1
nginx rewrite
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
3
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
10 years ago
2
log4j log parsing
PCRE (PHP <7.3)
This pulls out all the fields in a log4j field. Suitable for use in a Logstash Grok pattern or similar
Submitted by
Robin Kearney
-
10 years ago
2
python regex
Python
no description available
Submitted by
anonymous
-
10 years ago
1
Get all HTML tag names
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
2
Match 4chan thread URL
ECMAScript (JavaScript)
Matches a 4chan thread URL, see the examples
Submitted by
Zeke Sonxx <github.com/zekesonxx>
-
10 years ago
2
fail2ban real expression for w00tw00t
PCRE (PHP <7.3)
A real fai2ban expression for w00tw00t with alias substitution
Submitted by
MarcD
-
10 years ago
1
...
24
25
26
27
28
...
901
Community Library Entry
2
Regular Expression
ECMAScript (JavaScript)
/
(?:
http
(?:
s
)?
:
\/\/
)?
(?:
player
.
|
www
\.
)?
(
facebook
\.
com
|
vimeo
\.
com
|
ebaumsworld
\.
com
|
youtu
(?:
be
\.
com
|
\.
be
|
be
\.
googleapis
\.
com
)
|
liveleak
\.
com
|
break
\.
com
)
\/
(?:
video
\.
php
(?:
\?
v=
)
|
media
\/
embed
\/
|
video
\/
watch
\/
|
video
\/
|
embed
\/
|
watch
\?
v=
|
v
\/
)?
(?:
(?:
view
|
ll_embed
)
\?
)?
(?:
(
f
|
i
)
=
)?
(?:
video
\/
|
(?:
.
*
-
)
)?
(
[
A
-
Za
-
z0
-
9._%-
]
*
)
(?:
\&
\S
+
)?
/
Open regex in editor
Description
supported youtube, vimeo, face liveleak, break, ebaums, facebook support url and iframes
Submitted by
Misthero
-
10 years ago