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,000 community submitted regex patterns...
483
regex101.com permalink id grabber
PCRE (PHP <7.3)
Grabs the ID for the regex101.com permalink code. If a revision number is provided, grab that as well.
Submitted by
chris mccoy
-
11 years ago
(Last modified 7 months ago)
0
Grab text in double square brackets (excluding triple)
PCRE (PHP <7.3)
no description available
Submitted by
Petah
-
11 years ago
1
Check SQL Insert Into
PCRE (PHP <7.3)
no description available
Submitted by
MelRight
-
11 years ago
6
Password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
(Last modified a year ago)
8
Date time Advanced
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
11 years ago
-2
Date time
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
11 years ago
5
All href in a tag
PCRE (PHP <7.3)
Find all href in a tag
Submitted by
Miron Yanovskiy
-
11 years ago
3
Extract asp label
ECMAScript (JavaScript)
I am trying to extract the asp:label syntax using Regex but I am getting some error can some one help me
Submitted by
anonymous
-
11 years ago
9
Youtube ID match
PCRE (PHP <7.3)
This regex will match any Youtube video ID thrown at it and return one capturing group containing the ID.
Submitted by
Jacob Overgaard
-
11 years ago
2
Split Date
PCRE (PHP <7.3)
no description available
Submitted by
Arun Kumar Sekar
-
11 years ago
2
sample
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
Number, comma and dot
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
(Last modified a year ago)
1
js
ECMAScript (JavaScript)
no description available
Submitted by
sd
-
11 years ago
9
Removing an XML Nodes namespace prefix from a XML string wit
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
-2
Remove namespaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
4
Match Brackets and anything inside
ECMAScript (JavaScript)
no description available
Submitted by
andreayang
-
11 years ago
1
saja
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
Dotted-decimal IPv4 address
PCRE (PHP <7.3)
Validates an IPv4 address for use as a URI host as defined in RFC-3986.
Submitted by
ezzatron
-
11 years ago
1
{if}{endif} matcher
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
get image with classname
ECMAScript (JavaScript)
no description available
Submitted by
@cloverink
-
11 years ago
1
...
895
896
897
898
899
900
Community Library Entry
-1
Regular Expression
PCRE (PHP <7.3)
/
(
(?<raute>
#
(?<raute_content>
[^
\n
]
*
)
)
|
(?<doubleslashes>
\/\/
(?<doubleslashes_content>
[^
\n
]
*
)
)
|
(?<block>
\/\*
(?<block_content>
[^
*
]
+
|
\*
(?!
\/
)
)*
+
\*\/
)
)
/
gm
Open regex in editor
Description
Find Comments starting with # or //. Also finds Commentblocks starting with /* and ending with */.
Submitted by
Candyman1332
-
9 years ago