Ruby /[[:punct:]]/
is supposed to match all "punctuation characters". According to Wikipedia, this means /[][!"#$%&'()*+,./:;<=>?@^_`{|}~-]/
per POSIX standard.
It matches: -[];',./!@#%&*()_{}::"?
.
However, it does not match: =`~$^+|<>
(at least in ruby 1.9.3p194).
What gives?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…