Lines Matching full:perl

16 DIFFERENCES BETWEEN PCRE2 AND PERL
20 and Perl handle regular expressions. The differences described here are with
21 respect to Perl version 5.38.0, but as both Perl and PCRE2 are continually
25 1. When PCRE2_DOTALL (equivalent to Perl's /s qualifier) is not set, the
26 behaviour of the '.' metacharacter differs from Perl. In PCRE2, '.' matches the
30 EBCDIC. In Perl, '.' appears never to match LF, even when 0x0A is not a newline
34 2. PCRE2 has only a subset of Perl's Unicode support. Details of what it does
40 3. Like Perl, PCRE2 allows repeat quantifiers on parenthesized assertions, but
44 assertion just once). Perl allows some repeat quantifiers on other assertions,
51 Perl treats the quantifier characters as literal.
57 Perl may set such capture groups in other circumstances.
60 6. The following Perl escape sequences are not supported: \F, \l, \L, \u,
64 implemented by Perl's general string-handling and are not part of its pattern
71 7. The Perl escape sequences \p, \P, and \X are supported only if PCRE2 is
76 Perl support the Cs (surrogate) property, but in PCRE2 its use is limited. See
79 documentation for details. The long synonyms for property names that Perl
86 Perl in that $ and @ are also handled as literals inside the quotes. In Perl,
87 they cause variable interpolation (PCRE2 does not have variables). Also, Perl
93 Pattern PCRE2 matches Perl matches
102 by both PCRE2 and Perl.
114 backtracking into subroutine calls is now supported, as in Perl.
120 not always the case in Perl. In particular, if (*THEN) is present in a group
129 triggers (*PRUNE). Perl's behaviour is more complex; in many cases it is the
135 the pattern /^(a(b)?)+$/ in Perl leaves $2 unset, but in PCRE2 it is set to
140 general as Perl's. This is a consequence of the fact the PCRE2 works internally
149 15. Perl used to recognize comments in some places that PCRE2 does not, for
151 set, Perl allowed white space between ( and ? though the latest Perls give an
153 Perl behaves differently.
156 16. Perl, when in warning mode, gives warnings for character classes such as
164 always matches an upper case letter. I think Perl has changed in this respect;
169 18. From release 5.32.0, Perl locks out the use of \K in lookaround
176 19. PCRE2 provides some extensions to the Perl regular expression facilities.
177 Perl 5.10 included new features that were not in earlier versions of Perl, some
179 list is with respect to Perl 5.38:
186 (b) A backslash followed by a letter with no special meaning is faulted. (Perl
200 options have no Perl equivalents.
207 (g) The callout facility is PCRE2-specific. Perl supports codeblocks and
215 different way and is not Perl-compatible.
224 extension to the lookaround facilities. The default, Perl-compatible
231 numbers such as +2 and -4 in all three cases. Perl supports both plus and minus
236 20. Perl has different limits than PCRE2. See the
238 documentation for details. Perl went with 5.10 from recursion to iteration
244 21. Unlike Perl, PCRE2 doesn't have character set modifiers and specially no way
245 to set characters by context just like Perl's "/d". A regular expression using
246 PCRE2_UTF and PCRE2_UCP will use similar rules to Perl's "/u"; something closer
250 22. Some recursive patterns that Perl diagnoses as infinite recursions can be