如何在引号内找到字符串“/”或“\”,如下所示:
1
"some text some text / some text" more text without qotes / \
2
"/" more text without qotes / \
3
"some text some text \ some text" more text without qotes / \
4
"\" more text without qotes / \
输出1:/
输出2:/
输出3:\
输出4:\
修改
我尝试了“\?([^”] )/来查找/但它只是在“/ text”或“text /”时找到它,但是当它像“特克斯/吨“
正则表达式的语法是来自netbeans search.standard语法的语法?
答案 0 :(得分:1)