Is there a regular expression in Ruby that identifies Unicode punctuation (e.g. ", -)?
\p{P}
- not only in Ruby. See http://www.regular-expressions.info/unicode.html
You can use this:
/[[:punct:]]/
Read the Regexp class for more details . You can also check it out on Rubular permalink