- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

11.11 PCRE/Python Support

As of Perl 5.10.0, Perl supports several Python/PCRE specific extensions to the regex syntax. While Perl programmers are encouraged to use the Perl specific syntax, the following are also accepted:

(?P<NAME>pattern)
Define a named capture buffer. Equivalent to (?<NAME>pattern).
(?P=NAME)
Backreference to a named capture buffer. Equivalent to \g{NAME}.
(?P>NAME)
Subroutine call to a named capture buffer. Equivalent to (?&NAME).
ISBN 9781906966027Perl Language Reference ManualSee the print edition