/[pcre]/code/trunk/doc/pcrepattern.3
ViewVC logotype

Diff of /code/trunk/doc/pcrepattern.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 555 by ph10, Tue Oct 26 08:26:20 2010 UTC revision 556 by ph10, Tue Oct 26 11:06:44 2010 UTC
# Line 66  discussed in the Line 66  discussed in the
66  page.  page.
67  .  .
68  .  .
69    .\" HTML <a name="newlines"></a>
70  .SH "NEWLINE CONVENTIONS"  .SH "NEWLINE CONVENTIONS"
71  .rs  .rs
72  .sp  .sp
# Line 2109  that make up a comment play no part in t Line 2110  that make up a comment play no part in t
2110  .P  .P
2111  If the PCRE_EXTENDED option is set, an unescaped # character outside a  If the PCRE_EXTENDED option is set, an unescaped # character outside a
2112  character class introduces a comment that continues to immediately after the  character class introduces a comment that continues to immediately after the
2113  next newline in the pattern.  next newline character or character sequence in the pattern. Which characters
2114    are interpreted as newlines is controlled by the options passed to
2115    \fBpcre_compile()\fP or by a special sequence at the start of the pattern, as
2116    described in the section entitled
2117    .\" HTML <a href="#recursion">
2118    .\" </a>
2119    "Newline conventions"
2120    .\"
2121    above. Note that end of a comment is a literal newline sequence in the pattern;
2122    escape sequences that happen to represent a newline do not terminate a comment.
2123    For example, consider this pattern when PCRE_EXTENDED is set, and the default
2124    newline convention is in force:
2125    .sp
2126      abc #comment \en still comment
2127    .sp
2128    On encountering the # character, \fBpcre_compile()\fP skips along, looking for
2129    a newline in the pattern. The sequence \en is still literal at this stage, so
2130    it does not terminate the comment. Only an actual character with the code value
2131    0x0a does so.
2132  .  .
2133  .  .
2134  .\" HTML <a name="recursion"></a>  .\" HTML <a name="recursion"></a>

Legend:
Removed from v.555  
changed lines
  Added in v.556

  ViewVC Help
Powered by ViewVC 1.1.5