Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/ref.pcre.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.pcre.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'ref.pcre.php',
1 => 'PCRE Functions',
),
'up' =>
array (
0 => 'book.pcre.php',
1 => 'Regular Expressions (Perl-Compatible)',
),
'prev' =>
array (
0 => 'regexp.reference.performances.php',
1 => 'Performances',
),
'next' =>
array (
0 => 'function.preg-filter.php',
1 => 'preg_filter',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">PCRE Functions</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.preg-filter.php">preg_filter</a> — Perform a regular expression search and replace</li><li><a href="function.preg-grep.php">preg_grep</a> — Return array entries that match the pattern</li><li><a href="function.preg-last-error.php">preg_last_error</a> — Returns the error code of the last PCRE regex execution</li><li><a href="function.preg-match-all.php">preg_match_all</a> — Perform a global regular expression match</li><li><a href="function.preg-match.php">preg_match</a> — Perform a regular expression match</li><li><a href="function.preg-quote.php">preg_quote</a> — Quote regular expression characters</li><li><a href="function.preg-replace-callback.php">preg_replace_callback</a> — Perform a regular expression search and replace using a callback</li><li><a href="function.preg-replace.php">preg_replace</a> — Perform a regular expression search and replace</li><li><a href="function.preg-split.php">preg_split</a> — Split string by a regular expression</li></ul>
</div>
<?php manual_footer(); ?>