intro.pcre.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 52 行

HTML
52
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Introduction</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.pcre.html">PCRE</a></div> <div class="next" style="text-align: right; float: right;"><a href="pcre.setup.html">Installing/Configuring</a></div> <div class="up"><a href="book.pcre.html">PCRE</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="intro.pcre" class="preface">  <h1 class="title">Introduction</h1>  <p class="para">   The syntax for patterns used in these functions closely resembles   Perl. The expression must be enclosed in the delimiters, a   forward slash (/), for example.  Any character can be used for   delimiter as long as it&#039;s not alphanumeric or backslash (\). If   the delimiter character has to be used in the expression itself,   it needs to be escaped by backslash. Since PHP 4.0.4, you can also use   Perl-style (), {}, [], and &lt;&gt; matching delimiters.   See <a href="reference.pcre.pattern.syntax.html" class="link">Pattern Syntax</a>   for detailed explanation.  </p>  <p class="para">   The ending delimiter may be followed by various modifiers that   affect the matching.    See <a href="reference.pcre.pattern.modifiers.html" class="link">Pattern    Modifiers</a>.  </p>  <p class="para">   PHP also supports regular expressions using a POSIX-extended syntax   using the <a href="book.regex.html" class="link">POSIX-extended regex functions</a>.  </p>  <blockquote><p><b class="note">Note</b>:        This extension maintains a global per-thread cache of compiled regular    expressions (up to 4096).   <br />  </p></blockquote>  <div class="warning"><b class="warning">Warning</b>   <p class="para">    You should be aware of some limitations of PCRE. Read <a href="http://www.pcre.org/pcre.txt" class="link external">&raquo; http://www.pcre.org/pcre.txt</a> for more info.   </p>  </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.pcre.html">PCRE</a></div> <div class="next" style="text-align: right; float: right;"><a href="pcre.setup.html">Installing/Configuring</a></div> <div class="up"><a href="book.pcre.html">PCRE</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?