Source of: /manual/en/regexp.introduction.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.introduction.php',
1 => 'Introduction',
),
'up' =>
array (
0 => 'reference.pcre.pattern.syntax.php',
1 => 'Pattern Syntax',
),
'prev' =>
array (
0 => 'reference.pcre.pattern.syntax.php',
1 => 'PCRE regex syntax',
),
'next' =>
array (
0 => 'regexp.reference.meta.php',
1 => 'Meta-characters',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="regexp.introduction" class="section">
<h2 class="title">Introduction</h2>
<p class="para">
The syntax and semantics of the regular expressions
supported by PCRE are described below. Regular expressions are
also described in the Perl documentation and in a number of
other books, some of which have copious examples. Jeffrey
Friedl's "Mastering Regular Expressions", published by
O'Reilly (ISBN 1-56592-257-3), covers them in great detail.
The description here is intended as reference documentation.
</p>
<p class="para">
A regular expression is a pattern that is matched against a
subject string from left to right. Most characters stand for
themselves in a pattern, and match the corresponding
characters in the subject. As a trivial example, the pattern
<i>The quick brown fox</i>
matches a portion of a subject string that is identical to
itself.
</p>
</div><?php manual_footer(); ?>