Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
"[^\\"]*(?:\\.[^\\"]*)*"
/
gm
Input 1
1
New
# COMMENT ONLY REGEX --> ;.+ 1+2+3 ; this is my comment 2+3 # STRING ONLY REGEX --> "[^\\"]*(?:\\.[^\\"]*)*" 1+2+3+ this is a ";string;" "and another" 1+2+3 "another string" # COMBINED REGEX --> ????????? (*1+2+"hello")+3 ; this is my comment 1+2+()*&^"*;;;"h;\";;;\"ello;" ; another comment 1+2+;"a comment ;;; 1+2+ "; \"" ";\"hello" ; comment