Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PCRE support unicode string correctly?

Does PCRE support unicode string correctly?

like image 830
user536232 Avatar asked Apr 30 '11 06:04

user536232


People also ask

Is regex a Unicode?

RegexBuddy's regex engine is fully Unicode-based starting with version 2.0.

What Pcre matching does?

PCRE tries to match Perl syntax and semantics as closely as it can. PCRE also supports some alternative regular expression syntax (which does not conflict with the Perl syntax) in order to provide some compatibility with regular expressions in Python, .


1 Answers

Yes, it does (though probably not Unicode 6 yet). From the man page:

The current implementation of PCRE corresponds approximately with Perl 5.12, including port for UTF-8 encoded strings and Unicode general category properties. However, UTF-8 and Unicode support has to be explicitly enabled; it is not the default. The Unicode tables correspond to Unicode release 5.2.0.

like image 180
BoltClock Avatar answered Sep 24 '22 20:09

BoltClock