1 |
News about PCRE releases |
News about PCRE releases |
2 |
------------------------ |
------------------------ |
3 |
|
|
4 |
|
Release 4.0 17-Feb-03 |
5 |
|
--------------------- |
6 |
|
|
7 |
|
There have been a lot of changes for the 4.0 release, adding additional |
8 |
|
functionality and mending bugs. Below is a list of the highlights of the new |
9 |
|
functionality. For full details of these features, please consult the |
10 |
|
documentation. For a complete list of changes, see the ChangeLog file. |
11 |
|
|
12 |
|
1. Support for Perl's \Q...\E escapes. |
13 |
|
|
14 |
|
2. "Possessive quantifiers" ?+, *+, ++, and {,}+ which come from Sun's Java |
15 |
|
package. They provide some syntactic sugar for simple cases of "atomic |
16 |
|
grouping". |
17 |
|
|
18 |
|
3. Support for the \G assertion. It is true when the current matching position |
19 |
|
is at the start point of the match. |
20 |
|
|
21 |
|
4. A new feature that provides some of the functionality that Perl provides |
22 |
|
with (?{...}). The facility is termed a "callout". The way it is done in PCRE |
23 |
|
is for the caller to provide an optional function, by setting pcre_callout to |
24 |
|
its entry point. To get the function called, the regex must include (?C) at |
25 |
|
appropriate points. |
26 |
|
|
27 |
|
5. Support for recursive calls to individual subpatterns. This makes it really |
28 |
|
easy to get totally confused. |
29 |
|
|
30 |
|
6. Support for named subpatterns. The Python syntax (?P<name>...) is used to |
31 |
|
name a group. |
32 |
|
|
33 |
|
7. Several extensions to UTF-8 support; it is now fairly complete. There is an |
34 |
|
option for pcregrep to make it operate in UTF-8 mode. |
35 |
|
|
36 |
|
8. The single man page has been split into a number of separate man pages. |
37 |
|
These also give rise to individual HTML pages which are put in a separate |
38 |
|
directory. There is an index.html page that lists them all. Some hyperlinking |
39 |
|
between the pages has been installed. |
40 |
|
|
41 |
|
|
42 |
Release 3.5 15-Aug-01 |
Release 3.5 15-Aug-01 |
43 |
--------------------- |
--------------------- |
44 |
|
|