I came across some regular expressions that I’ve never seen before, and I can’t find any information on what they do. Here’s an example:
/[\p{Z}\p{Cc}\p{Cf}\p{Cs}\p{Pi}\p{Pf}]/u
I’m looking for a full reference for regex.
P.S. I think the example provided only words in certain languages. It works in PHP but not Javascript.
The complete reference for PHP PCRE (Perl Compatible Regular Expression) is in the PHP docs.
What you’re looking at are Unicode character properties, also in the PHP docs, as well as the regular expression modifiers for the
uat the end of the regex.