正则表达式匹配 html 中的转义字符

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/technofiend/article/details/77716720

正则

(['"])((\\\1)|.)*?\1

测试实例

'I\'m hello world'

猜你喜欢

转载自blog.csdn.net/technofiend/article/details/77716720