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
/
(?:'|").*(?:'|")
/
g
Input 1
The sentence is 'He said "Hello there"' The sentence is "He said 'Hello there'" My text "can contain" both single 'and double"' quotes. The quotes "can also be 'nested" as you can see.