<!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>Anchors</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="parle.regex.alternation.html">Alternation and repetition</a></div> <div class="next" style="text-align: right; float: right;"><a href="parle.regex.grouping.html">Grouping</a></div> <div class="up"><a href="parle.pattern.matching.html">Pattern matching</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="parle.regex.anchors" class="section"> <h2 class="title">Anchors</h2> <p class="para"> <table class="doctable table"> <caption><strong>Anchors</strong></caption> <thead> <tr> <th>Sequence</th><th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>^</td><td>Start of string or after a newline.</td> </tr> <tr> <td>$</td><td>End of string or before a newline.</td> </tr> </tbody> </table> </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="parle.regex.alternation.html">Alternation and repetition</a></div> <div class="next" style="text-align: right; float: right;"><a href="parle.regex.grouping.html">Grouping</a></div> <div class="up"><a href="parle.pattern.matching.html">Pattern matching</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>