Your example of <punct> shows that the documentation is wrong actually. UTS#18 recommends a definition of <:P> (punctuation category characters), and all Rakudo backends agree with this. UTS#18's POSIX-compatible definition is <:P + :S - alpha> (note: the UTS#18 definition of <alpha>, not ours), but specifically recommends against this because counting symbols as punctuation can be confusing. Additionally, S05 corroborates the idea that it should be punctuation only:
• punct
Match a single punctuation character (that is, any character from the Unicode General Category "Punctuation").
The online documentation is simply wrong, it should say <:P> is the definition.
Originally posted by @ShimmerFairy in #509
Originally posted by @ShimmerFairy in #509