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
/
(\s')(.*?)(?='[\s]+)
/
g
Input 1
1
New
some text <tag link="fo>o"> other text some text <tag link="fo>o"> other text <meta name="keywords" content="javascript,regex><><><<>,regular expression,debugger,explainer,helper,tester,match,pcre,python,ed<<<<i>>to>r" /> <meta name="descrip><>><>tion" content="Online reg>---<ex tester, debugger with highlighting for PHP, PCRE, Python and JavaScript." /> <meta name="author" content="Firas Dib" /> content content content content <meta property="twitter:ca><<>>><>><>rd" content="summary" />content content content content content content content <meta property="twitter:site" content="@regex101" />content content content content content content content content <meta property="twitter:title" content="Regex101 - online regex editor and debugger" />
Substitution
some text <tag link="fo>o"> other text some text <tag link="fo>o"> other text <meta name="keywords" content="javascript,regex><><><<>,regular expression,debugger,explainer,helper,tester,match,pcre,python,ed<<<<i>>to>r" /> <meta name="descrip><>><>tion" content="Online reg>---<ex tester, debugger with highlighting for PHP, PCRE, Python and JavaScript." /> <meta name="author" content="Firas Dib" /> content content content content <meta property="twitter:ca><<>>><>><>rd" content="summary" />content content content content content content content <meta property="twitter:site" content="@regex101" />content content content content content content content content <meta property="twitter:title" content="Regex101 - online regex editor and debugger" />