| 66 |
|
|
| 67 |
12. Added an optional parentheses number to the -o and --only-matching options |
12. Added an optional parentheses number to the -o and --only-matching options |
| 68 |
of pcregrep. |
of pcregrep. |
| 69 |
|
|
| 70 |
|
13. Imitating Perl's /g action for multiple matches is tricky when the pattern |
| 71 |
|
can match an empty string. The code to do it in pcretest and pcredemo |
| 72 |
|
needed fixing: |
| 73 |
|
|
| 74 |
|
(a) When the newline convention was "crlf", pcretest got it wrong, skipping |
| 75 |
|
only one byte after an empty string match just before CRLF (this case |
| 76 |
|
just got forgotten; "any" and "anycrlf" were OK). |
| 77 |
|
|
| 78 |
|
(b) The pcretest code also had a bug, causing it to loop forever in UTF-8 |
| 79 |
|
mode when an empty string match preceded an ASCII character followed by |
| 80 |
|
a non-ASCII character. (The code for advancing by one character rather |
| 81 |
|
than one byte was nonsense.) |
| 82 |
|
|
| 83 |
|
(c) The pcredemo.c sample program did not have any code at all to handle |
| 84 |
|
the cases when CRLF is a valid newline sequence. |
| 85 |
|
|
| 86 |
|
|
| 87 |
Version 8.10 25-Jun-2010 |
Version 8.10 25-Jun-2010 |