According to the documentation , the Unicode punctuation mark class is apparently only available when using PCRE (Neko, C ++, PHP) and for Java and C #. In any case, you can try different syntaxes with or without backslash: \p{Punct} \p{P} \pP and, ultimately, the POSIX character class: [[:punct:]]
These classes are not available for JavaScript (and probably not for Flash). In this case, the method is to put all the punctuation marks in the class using as many ranges as possible.
source share