我想匹配除单引号之外的所有标点符号.
我尝试了以下内容.
/[^'[:punct:]]
[(^')[:punct:]]
^'
如果没有,我想我总是可以写出完整的:punct:除了'.
:punct:
'
ruby regex
regex ×1
ruby ×1