<!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>Dot</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="regexp.reference.anchors.html">Anchors</a></div> <div class="next" style="text-align: right; float: right;"><a href="regexp.reference.character-classes.html">Character classes</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.dot" class="section"> <h2 class="title">Dot</h2> <p class="para"> Outside a character class, a dot in the pattern matches any one character in the subject, including a non-printing character, but not (by default) newline. If the <a href="reference.pcre.pattern.modifiers.html" class="link">PCRE_DOTALL</a> option is set, then dots match newlines as well. The handling of dot is entirely independent of the handling of circumflex and dollar, the only relationship being that they both involve newline characters. Dot has no special meaning in a character class. </p> <p class="para"> <em class="emphasis">\C</em> can be used to match single byte. It makes sense in <em class="emphasis">UTF-8 mode</em> where full stop matches the whole character which can consist of multiple bytes. </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="regexp.reference.anchors.html">Anchors</a></div> <div class="next" style="text-align: right; float: right;"><a href="regexp.reference.character-classes.html">Character classes</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>