17 |
If you save compiled patterns to a file, you can copy them to a different host |
If you save compiled patterns to a file, you can copy them to a different host |
18 |
and run them there. This works even if the new host has the opposite endianness |
and run them there. This works even if the new host has the opposite endianness |
19 |
to the one on which the patterns were compiled. There may be a small |
to the one on which the patterns were compiled. There may be a small |
20 |
performance penalty, but it should be insignificant. |
performance penalty, but it should be insignificant. However, compiling regular |
21 |
|
expressions with one version of PCRE for use with a different version is not |
22 |
|
guaranteed to work and may cause crashes. |
23 |
. |
. |
24 |
. |
. |
25 |
.SH "SAVING A COMPILED PATTERN" |
.SH "SAVING A COMPILED PATTERN" |
117 |
.SH "COMPATIBILITY WITH DIFFERENT PCRE RELEASES" |
.SH "COMPATIBILITY WITH DIFFERENT PCRE RELEASES" |
118 |
.rs |
.rs |
119 |
.sp |
.sp |
120 |
The layout of the control block that is at the start of the data that makes up |
In general, it is safest to recompile all saved patterns when you update to a |
121 |
a compiled pattern was changed for release 5.0. If you have any saved patterns |
new PCRE release, though not all updates actually require this. Recompiling is |
122 |
that were compiled with previous releases (not a facility that was previously |
definitely needed for release 7.2. |
123 |
advertised), you will have to recompile them for release 5.0. However, from now |
. |
124 |
on, it should be possible to make changes in a compatible manner. |
. |
125 |
.P |
. |
126 |
Notwithstanding the above, if you have any saved patterns in UTF-8 mode that |
.SH AUTHOR |
127 |
use \ep or \eP that were compiled with any release up to and including 6.4, you |
.rs |
128 |
will have to recompile them for release 6.5 and above. |
.sp |
129 |
.P |
.nf |
130 |
.in 0 |
Philip Hazel |
131 |
Last updated: 01 February 2006 |
University Computing Service |
132 |
.br |
Cambridge CB2 3QH, England. |
133 |
Copyright (c) 1997-2006 University of Cambridge. |
.fi |
134 |
|
. |
135 |
|
. |
136 |
|
.SH REVISION |
137 |
|
.rs |
138 |
|
.sp |
139 |
|
.nf |
140 |
|
Last updated: 13 June 2007 |
141 |
|
Copyright (c) 1997-2007 University of Cambridge. |
142 |
|
.fi |