Is there an equivalent in Java \ p {Punct} in Haxe regular expressions?

The Haxe manual does not contain any regular expression characters. I cannot find which character maps to Java \p{Punct} .

Does Hacks have anything like this?

+5
source share
1 answer

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.

+4
source

Source: https://habr.com/ru/post/1237456/


All Articles