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 3,780 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Simple
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2013-10-12 10:33
-1
4 upvotes, 5 downvotes (score 18.9%) (You must be signed in to vote)
Find image style
ECMAScript (JavaScript)
style img
Submitted by
anonymous
-
10 years ago
2013-10-08 17:57
3
10 upvotes, 7 downvotes (score 36%) (You must be signed in to vote)
HTML image tag src
ECMAScript (JavaScript)
Capture src attribute of HTML image tags
Submitted by
Simon Altschuler
-
10 years ago
2013-10-08 17:29
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Error in Refex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2013-10-02 05:20
5
12 upvotes, 7 downvotes (score 41%) (You must be signed in to vote)
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
10 years ago
2013-09-29 00:48
5
9 upvotes, 4 downvotes (score 42.4%) (You must be signed in to vote)
Hello world !
ECMAScript (JavaScript)
no description available
Submitted by
Fedir RYKHTIK
-
10 years ago
2013-09-10 09:01
106
601 upvotes, 495 downvotes (score 51.9%) (You must be signed in to vote)
trim
ECMAScript (JavaScript)
trim string
Submitted by
fp
-
10 years ago
2013-09-10 08:21
1
...
186
187
188
189
test
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
comment_approved
\s
=
\s
\'
(?:
1
|
0
)
\'
)
|
\(
\s
(
comment_approved
\s
=
\s
'0'
\s
OR
\s
comment_approved
\s
=
\s
'1'
)
\s
\)
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-08-27 14:32