/[pcre]/code/trunk/doc/html/pcretest.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcretest.html

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

revision 571 by ph10, Sat Nov 6 17:10:00 2010 UTC revision 572 by ph10, Wed Nov 17 17:55:57 2010 UTC
# Line 385  recognized: Line 385  recognized:
385    \t         tab (\x09)    \t         tab (\x09)
386    \v         vertical tab (\x0b)    \v         vertical tab (\x0b)
387    \nnn       octal character (up to 3 octal digits)    \nnn       octal character (up to 3 octal digits)
388    \xhh       hexadecimal character (up to 2 hex digits)                 always a byte unless > 255 in UTF-8 mode
389      \xhh       hexadecimal byte (up to 2 hex digits)
390    \x{hh...}  hexadecimal character, any number of digits in UTF-8 mode    \x{hh...}  hexadecimal character, any number of digits in UTF-8 mode
391    \A         pass the PCRE_ANCHORED option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>    \A         pass the PCRE_ANCHORED option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>
392    \B         pass the PCRE_NOTBOL option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>    \B         pass the PCRE_NOTBOL option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>
# Line 423  recognized: Line 424  recognized:
424    \&#60;anycrlf&#62; pass the PCRE_NEWLINE_ANYCRLF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>    \&#60;anycrlf&#62; pass the PCRE_NEWLINE_ANYCRLF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>
425    \&#60;any&#62;     pass the PCRE_NEWLINE_ANY option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>    \&#60;any&#62;     pass the PCRE_NEWLINE_ANY option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>
426  </pre>  </pre>
427    Note that \xhh always specifies one byte, even in UTF-8 mode; this makes it
428    possible to construct invalid UTF-8 sequences for testing purposes. On the
429    other hand, \x{hh} is interpreted as a UTF-8 character in UTF-8 mode,
430    generating more than one byte if the value is greater than 127. When not in
431    UTF-8 mode, it generates one byte for values less than 256, and causes an error
432    for greater values.
433    </P>
434    <P>
435  The escapes that specify line ending sequences are literal strings, exactly as  The escapes that specify line ending sequences are literal strings, exactly as
436  shown. No more than one newline setting should be present in any data line.  shown. No more than one newline setting should be present in any data line.
437  </P>  </P>
# Line 747  Cambridge CB2 3QH, England. Line 756  Cambridge CB2 3QH, England.
756  </P>  </P>
757  <br><a name="SEC15" href="#TOC1">REVISION</a><br>  <br><a name="SEC15" href="#TOC1">REVISION</a><br>
758  <P>  <P>
759  Last updated: 06 November 2010  Last updated: 07 November 2010
760  <br>  <br>
761  Copyright &copy; 1997-2010 University of Cambridge.  Copyright &copy; 1997-2010 University of Cambridge.
762  <br>  <br>

Legend:
Removed from v.571  
changed lines
  Added in v.572

  ViewVC Help
Powered by ViewVC 1.1.5