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
Community Patterns
Search among 14,880 community submitted regex patterns...
0
Lockbox Sätze
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Trim leading zeroes in numbers 012.210 => 12.21
PCRE (PHP <7.3)
Trim leading zeroes 012.210 => 12.21 .002300 => .0023
Submitted by
FAy
-
7 years ago
0
Mercedes-Benz redirection rules
PCRE (PHP <7.3)
Redirect a model to a new page, any language, any country. Desktop and mobile website. You might need to remove backslash in Umbraco redirect file
Submitted by
anonymous
-
7 years ago
0
Trim string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Match Apache log line
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Replace Array to Square Brackets with TableIdentifier situation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
VID file prognose
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
-1
Extract AppleScript Handler Info: Name, Parameters, Tags, Comments
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
PasswordVerification
PCRE (PHP <7.3)
Password expresion that requires one lower case letter, one upper case letter, one digit, 6-13 length and must start with a* letter.*
Submitted by
anonymous
-
7 years ago
0
Больше 250
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Shorten Names: Keep only one name before a comma.
PCRE (PHP <7.3)
no description available
Submitted by
mglezsauri@gmail.com
-
7 years ago
0
Shorten Names: Delete everything but the First and Second Last Name
PCRE (PHP <7.3)
Useful for deleting extra last names before a comma.
Submitted by
mglezsauri@gmail.com
-
7 years ago
0
Shortening Names: Erase everything between a white space and a comma.
PCRE (PHP <7.3)
This is useful for shortening names.
Submitted by
mglezsauri@gmail.com
-
7 years ago
0
Shortening Names: Capture a group between a white space and a comma.
PCRE (PHP <7.3)
For shortening names.
Submitted by
anonymous
-
7 years ago
1
dd-MM-yyyy validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
MyTelephoneNumberRegex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
parsing objdump output
Python
parsing objdump output
Submitted by
anonymous
-
7 years ago
0
Simple ES5 to ES6 Shorthand Function notation
PCRE (PHP <7.3)
Converts standard function(a,b) function notation into (a, b) => { shorthand for ES6.
Submitted by
Simon Poole
-
7 years ago
3
Hostname validation
Golang
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
7 years ago
1
...
456
457
458
459
460
...
744
Find Comments or Commentblocks in Code
1
Regular Expression
PCRE (PHP <7.3)
/
(
(?<raute>
#
(?<raute_content>
.
*
)
)
|
(?<doubleslashes>
\/\/
(?<doubleslashes_content>
.
*
)
)
|
(?<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
-
8 years ago