<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Comments</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="regexp.reference.conditional.html">Conditional subpatterns</a></div> <div class="next" style="text-align: right; float: right;"><a href="regexp.reference.recursive.html">Recursive patterns</a></div> <div class="up"><a href="reference.pcre.pattern.syntax.html">PCRE regex syntax</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><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.html" 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><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="regexp.reference.conditional.html">Conditional subpatterns</a></div> <div class="next" style="text-align: right; float: right;"><a href="regexp.reference.recursive.html">Recursive patterns</a></div> <div class="up"><a href="reference.pcre.pattern.syntax.html">PCRE regex syntax</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>