mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
MFB:
- Changed pattern.modifiers.xml from refentry to article - Changed pattern.syntax.xml from refentry to article - Changed refsect1 and refsect2 to sections within these new articles # thanks to hannes for spotting this forgotten commit git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@249275 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8b5c1c9c56
commit
95de0e46ac
2 changed files with 53 additions and 61 deletions
|
@ -1,14 +1,9 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
|
||||
<refentry xml:id="reference.pcre.pattern.modifiers" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>Pattern Modifiers</refname>
|
||||
<refpurpose>Describes possible modifiers in regex
|
||||
patterns</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<article xml:id="reference.pcre.pattern.modifiers" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Pattern Modifiers</title>
|
||||
<titleabbrev>Describes possible modifiers in regex patterns</titleabbrev>
|
||||
<para>
|
||||
The current possible PCRE modifiers are listed below. The names
|
||||
in parentheses refer to internal PCRE names for these modifiers.
|
||||
|
@ -196,8 +191,7 @@
|
|||
</variablelist>
|
||||
</blockquote>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</article>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.19 $ -->
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
|
||||
<refentry xml:id="reference.pcre.pattern.syntax" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>Pattern Syntax</refname>
|
||||
<refpurpose>Describes PCRE regex syntax</refpurpose>
|
||||
</refnamediv>
|
||||
<chapter xml:id="reference.pcre.pattern.syntax" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Pattern Syntax</title>
|
||||
<titleabbrev>Describes PCRE regex syntax</titleabbrev>
|
||||
|
||||
<refsect1>
|
||||
<section xml:id="pcre.pattern.syntax.description">
|
||||
<title>Description</title>
|
||||
<simpara>
|
||||
The PCRE library is a set of functions that implement regular
|
||||
|
@ -15,9 +13,9 @@
|
|||
as Perl 5, with just a few differences (see below). The current
|
||||
implementation corresponds to Perl 5.005.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</section>
|
||||
|
||||
<refsect1>
|
||||
<section xml:id="pcre.pattern.syntax.differences">
|
||||
<title>Differences From Perl</title>
|
||||
<para>
|
||||
The differences described here are with respect to Perl 5.005.
|
||||
|
@ -147,11 +145,11 @@
|
|||
</listitem>
|
||||
</orderedlist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</section>
|
||||
|
||||
<refsect1 xml:id="regexp.reference">
|
||||
<section xml:id="regexp.reference">
|
||||
<title>Regular Expression Details</title>
|
||||
<refsect2 xml:id="regexp.introduction">
|
||||
<section xml:id="regexp.introduction">
|
||||
<title>Introduction</title>
|
||||
<para>
|
||||
The syntax and semantics of the regular expressions
|
||||
|
@ -171,8 +169,8 @@
|
|||
matches a portion of a subject string that is identical to
|
||||
itself.
|
||||
</para>
|
||||
</refsect2>
|
||||
<refsect2 xml:id="regexp.reference.meta">
|
||||
</section>
|
||||
<section xml:id="regexp.reference.meta">
|
||||
<title>Meta-characters</title>
|
||||
<para>
|
||||
The power of regular expressions comes from the
|
||||
|
@ -271,9 +269,9 @@
|
|||
The following sections describe the use of each of the
|
||||
meta-characters.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.backslash">
|
||||
<section xml:id="regexp.reference.backslash">
|
||||
<title>Backslash</title>
|
||||
<para>
|
||||
The backslash character has several uses. Firstly, if it is
|
||||
|
@ -634,9 +632,9 @@
|
|||
matches "foobar", the first substring is still set to "foo".
|
||||
</para>
|
||||
|
||||
</refsect2>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.unicode">
|
||||
</section>
|
||||
|
||||
<section xml:id="regexp.reference.unicode">
|
||||
<title>Unicode character properties</title>
|
||||
<para>
|
||||
Since PHP 4.4.0 and 5.1.0, three
|
||||
|
@ -745,9 +743,9 @@
|
|||
<literal>\d</literal> and <literal>\w</literal> do not use Unicode properties
|
||||
in PCRE.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.circudollar">
|
||||
<section xml:id="regexp.reference.circudollar">
|
||||
<title>Circumflex and dollar</title>
|
||||
<para>
|
||||
Outside a character class, in the default matching mode, the
|
||||
|
@ -805,9 +803,9 @@
|
|||
whether <link linkend="reference.pcre.pattern.modifiers">PCRE_MULTILINE</link>
|
||||
is set or not.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.dot">
|
||||
<section xml:id="regexp.reference.dot">
|
||||
<title>Full stop</title>
|
||||
<para>
|
||||
Outside a character class, a dot in the pattern matches any
|
||||
|
@ -825,9 +823,9 @@
|
|||
in <emphasis>UTF-8 mode</emphasis> where full stop matches the whole
|
||||
character which can consist of multiple bytes.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.squarebrackets">
|
||||
<section xml:id="regexp.reference.squarebrackets">
|
||||
<title>Square brackets</title>
|
||||
<para>
|
||||
An opening square bracket introduces a character class,
|
||||
|
@ -915,9 +913,9 @@
|
|||
start) and the terminating ] are non-special in character
|
||||
classes, but it does no harm if they are escaped.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.verticalbar">
|
||||
<section xml:id="regexp.reference.verticalbar">
|
||||
<title>Vertical bar</title>
|
||||
<para>
|
||||
Vertical bar characters are used to separate alternative
|
||||
|
@ -932,9 +930,9 @@
|
|||
rest of the main pattern as well as the alternative in the
|
||||
subpattern.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.internal-options">
|
||||
<section xml:id="regexp.reference.internal-options">
|
||||
<title>Internal option setting</title>
|
||||
<para>
|
||||
The settings of <link linkend="reference.pcre.pattern.modifiers">PCRE_CASELESS</link>,
|
||||
|
@ -1036,9 +1034,9 @@
|
|||
the pattern than any of the additional features it turns on,
|
||||
even when it is at top level. It is best put at the start.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.subpatterns">
|
||||
<section xml:id="regexp.reference.subpatterns">
|
||||
<title>Subpatterns</title>
|
||||
<para>
|
||||
Subpatterns are delimited by parentheses (round brackets),
|
||||
|
@ -1117,9 +1115,9 @@
|
|||
matches will contain the match indexed by the string alongside the match
|
||||
indexed by a number, then.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.repetition">
|
||||
<section xml:id="regexp.reference.repetition">
|
||||
<title>Repetition</title>
|
||||
<para>
|
||||
Repetition is specified by quantifiers, which can follow any
|
||||
|
@ -1298,9 +1296,9 @@
|
|||
matches "aba" the value of the second captured substring is
|
||||
"b".
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.back-references">
|
||||
<section xml:id="regexp.reference.back-references">
|
||||
<title>Back references</title>
|
||||
<para>
|
||||
Outside a character class, a backslash followed by a digit
|
||||
|
@ -1376,9 +1374,9 @@
|
|||
<literal>\k<name></literal>, <literal>\k'name'</literal>,
|
||||
<literal>\k{name}</literal> or <literal>\g{name}</literal>.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.assertions">
|
||||
<section xml:id="regexp.reference.assertions">
|
||||
<title>Assertions</title>
|
||||
<para>
|
||||
An assertion is a test on the characters following or
|
||||
|
@ -1505,9 +1503,9 @@
|
|||
Assertions count towards the maximum of 200 parenthesized
|
||||
subpatterns.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.onlyonce">
|
||||
<section xml:id="regexp.reference.onlyonce">
|
||||
<title>Once-only subpatterns</title>
|
||||
<para>
|
||||
With both maximizing and minimizing repetition, failure of
|
||||
|
@ -1621,9 +1619,9 @@
|
|||
|
||||
sequences of non-digits cannot be broken, and failure happens quickly.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.conditional">
|
||||
<section xml:id="regexp.reference.conditional">
|
||||
<title>Conditional subpatterns</title>
|
||||
<para>
|
||||
It is possible to cause the matching process to obey a subpattern
|
||||
|
@ -1696,9 +1694,9 @@
|
|||
one of the two forms dd-aaa-dd or dd-dd-dd, where aaa are
|
||||
letters and dd are digits.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.comments">
|
||||
<section xml:id="regexp.reference.comments">
|
||||
<title>Comments</title>
|
||||
<para>
|
||||
The sequence (?# marks the start of a comment which
|
||||
|
@ -1712,9 +1710,9 @@
|
|||
introduces a comment that continues up to the next newline character
|
||||
in the pattern.
|
||||
</para>
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.recursive">
|
||||
<section xml:id="regexp.reference.recursive">
|
||||
<title>Recursive patterns</title>
|
||||
<para>
|
||||
Consider the problem of matching a string in parentheses,
|
||||
|
@ -1805,9 +1803,9 @@
|
|||
processed by certain patterns.
|
||||
</para>
|
||||
|
||||
</refsect2>
|
||||
</section>
|
||||
|
||||
<refsect2 xml:id="regexp.reference.performances">
|
||||
<section xml:id="regexp.reference.performances">
|
||||
<title>Performances</title>
|
||||
<para>
|
||||
Certain items that may appear in patterns are more efficient
|
||||
|
@ -1882,9 +1880,9 @@
|
|||
whereas the latter takes an appreciable time with strings
|
||||
longer than about 20 characters.
|
||||
</para>
|
||||
</refsect2>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</section>
|
||||
</section>
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue