\pP Match P, named property. Use \p{Prop} for longer names.What the heck is a named property? I grepped the 5.8.0 and 5.8.1-RC2 source and found no mention of this except for the one line in perlre. The following snippet indicates it has something to do with unicode but there's no other reference to this.perl -Mre=debug -e 'qr/\p{something}/'
Produces:
Freeing REx: `","' Compiling REx `\p{something}' size 12 Got 100 bytes for offset annotations. first at 1 1: ANYOF[{unicode}+utf8::something](12) 12: END(0) stclass `ANYOF[{unicode}+utf8::something]' minlen 1 Offsets: [12] 0[11] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 14[0] Omitting $` $& $' support. EXECUTING... Freeing REx: `"\\p{something}"'
In reply to What is a 'named property'? (perlre) by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |