ViewVC logotype

Contents of /code/trunk/doc/html/pcrelimits.html

Parent Directory Parent Directory | Revision Log Revision Log

Revision 835 - (show annotations)
Wed Dec 28 16:10:09 2011 UTC (9 years, 4 months ago) by ph10
File MIME type: text/html
File size: 2207 byte(s)
Error occurred while calculating annotation data.
Rolled back trunk to r755 to prepare for merging the 16-bit branch.
1 <html>
2 <head>
3 <title>pcrelimits specification</title>
4 </head>
5 <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6 <h1>pcrelimits man page</h1>
7 <p>
8 Return to the <a href="index.html">PCRE index page</a>.
9 </p>
10 <p>
11 This page is part of the PCRE HTML documentation. It was generated automatically
12 from the original man page. If there is any nonsense in it, please consult the
13 man page, in case the conversion went wrong.
14 <br>
15 <br><b>
17 </b><br>
18 <P>
19 There are some size limitations in PCRE but it is hoped that they will never in
20 practice be relevant.
21 </P>
22 <P>
23 The maximum length of a compiled pattern is 65539 (sic) bytes if PCRE is
24 compiled with the default internal linkage size of 2. If you want to process
25 regular expressions that are truly enormous, you can compile PCRE with an
26 internal linkage size of 3 or 4 (see the <b>README</b> file in the source
27 distribution and the
28 <a href="pcrebuild.html"><b>pcrebuild</b></a>
29 documentation for details). In these cases the limit is substantially larger.
30 However, the speed of execution is slower.
31 </P>
32 <P>
33 All values in repeating quantifiers must be less than 65536.
34 </P>
35 <P>
36 There is no limit to the number of parenthesized subpatterns, but there can be
37 no more than 65535 capturing subpatterns.
38 </P>
39 <P>
40 The maximum length of name for a named subpattern is 32 characters, and the
41 maximum number of named subpatterns is 10000.
42 </P>
43 <P>
44 The maximum length of a subject string is the largest positive number that an
45 integer variable can hold. However, when using the traditional matching
46 function, PCRE uses recursion to handle subpatterns and indefinite repetition.
47 This means that the available stack space may limit the size of a subject
48 string that can be processed by certain patterns. For a discussion of stack
49 issues, see the
50 <a href="pcrestack.html"><b>pcrestack</b></a>
51 documentation.
52 </P>
53 <br><b>
55 </b><br>
56 <P>
57 Philip Hazel
58 <br>
59 University Computing Service
60 <br>
61 Cambridge CB2 3QH, England.
62 <br>
63 </P>
64 <br><b>
66 </b><br>
67 <P>
68 Last updated: 24 August 2011
69 <br>
70 Copyright &copy; 1997-2011 University of Cambridge.
71 <br>
72 <p>
73 Return to the <a href="index.html">PCRE index page</a>.
74 </p>

  ViewVC Help
Powered by ViewVC 1.1.5