| 2 |
------------------------ |
------------------------ |
| 3 |
|
|
| 4 |
|
|
| 5 |
Release 7.2 30-Apr-07 |
Release 7.3 28-Aug-07 |
| 6 |
--------------------- |
--------------------- |
| 7 |
|
|
| 8 |
Correction to the notes for 7.1: the note about shared libraries for Windows is |
Most changes are bug fixes. Some that are not: |
| 9 |
wrong. Previously, three libraries were built, but each could function |
|
| 10 |
independently. For example, the pcreposix library also included all the |
1. There is some support for Perl 5.10's experimental "backtracking control |
| 11 |
functions from the basic pcre library. The change is that the three libraries |
verbs" such as (*PRUNE). |
| 12 |
are no longer independent. They are like the Unix libraries. To use the |
|
| 13 |
pcreposix functions, for example, you need to link with both the pcreposix and |
2. UTF-8 checking is now as per RFC 3629 instead of RFC 2279; this is more |
| 14 |
|
restrictive in the strings it accepts. |
| 15 |
|
|
| 16 |
|
3. Checking for potential integer overflow has been made more dynamic, and as a |
| 17 |
|
consequence there is no longer a hard limit on the size of a subpattern that |
| 18 |
|
has a limited repeat count. |
| 19 |
|
|
| 20 |
|
4. When CRLF is a valid line-ending sequence, pcre_exec() and pcre_dfa_exec() |
| 21 |
|
no longer advance by two characters instead of one when an unanchored match |
| 22 |
|
fails at CRLF if there are explicit CR or LF matches within the pattern. |
| 23 |
|
This gets rid of some anomalous effects that previously occurred. |
| 24 |
|
|
| 25 |
|
5. Some PCRE-specific settings for varying the newline options at the start of |
| 26 |
|
a pattern have been added. |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
Release 7.2 19-Jun-07 |
| 30 |
|
--------------------- |
| 31 |
|
|
| 32 |
|
WARNING: saved patterns that were compiled by earlier versions of PCRE must be |
| 33 |
|
recompiled for use with 7.2 (necessitated by the addition of \K, \h, \H, \v, |
| 34 |
|
and \V). |
| 35 |
|
|
| 36 |
|
Correction to the notes for 7.1: the note about shared libraries for Windows is |
| 37 |
|
wrong. Previously, three libraries were built, but each could function |
| 38 |
|
independently. For example, the pcreposix library also included all the |
| 39 |
|
functions from the basic pcre library. The change is that the three libraries |
| 40 |
|
are no longer independent. They are like the Unix libraries. To use the |
| 41 |
|
pcreposix functions, for example, you need to link with both the pcreposix and |
| 42 |
the basic pcre library. |
the basic pcre library. |
| 43 |
|
|
| 44 |
|
Some more features from Perl 5.10 have been added: |
| 45 |
|
|
| 46 |
|
(?-n) and (?+n) relative references for recursion and subroutines. |
| 47 |
|
|
| 48 |
|
(?(-n) and (?(+n) relative references as conditions. |
| 49 |
|
|
| 50 |
|
\k{name} and \g{name} are synonyms for \k<name>. |
| 51 |
|
|
| 52 |
|
\K to reset the start of the matched string; for example, (foo)\Kbar |
| 53 |
|
matches bar preceded by foo, but only sets bar as the matched string. |
| 54 |
|
|
| 55 |
|
(?| introduces a group where the capturing parentheses in each alternative |
| 56 |
|
start from the same number; for example, (?|(abc)|(xyz)) sets capturing |
| 57 |
|
parentheses number 1 in both cases. |
| 58 |
|
|
| 59 |
|
\h, \H, \v, \V match horizontal and vertical whitespace, respectively. |
| 60 |
|
|
| 61 |
|
|
| 62 |
Release 7.1 24-Apr-07 |
Release 7.1 24-Apr-07 |
| 63 |
--------------------- |
--------------------- |