Source of: /manual/en/regexp.reference.comments.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/reference.pcre.pattern.syntax.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'regexp.reference.comments.php',
1 => 'Comments',
),
'up' =>
array (
0 => 'reference.pcre.pattern.syntax.php',
1 => 'Pattern Syntax',
),
'prev' =>
array (
0 => 'regexp.reference.conditional.php',
1 => 'Conditional subpatterns',
),
'next' =>
array (
0 => 'regexp.reference.recursive.php',
1 => 'Recursive patterns',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="regexp.reference.comments" class="section">
<h2 class="title">Comments</h2>
<p class="para">
The sequence (?# marks the start of a comment which
continues up to the next closing parenthesis. Nested
parentheses are not permitted. The characters that make up a
comment play no part in the pattern matching at all.
</p>
<p class="para">
If the <a href="reference.pcre.pattern.modifiers.php" class="link">PCRE_EXTENDED</a>
option is set, an unescaped # character outside a character class
introduces a comment that continues up to the next newline character
in the pattern.
</p>
</div><?php manual_footer(); ?>