mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 10:28:54 +00:00

- Split reference.xml into book.xml, setup.xml, pattern.xml, and examples.xml - Moved from reference.xml to book.xml: - The intro text (partintro), and link to various pages - Moved from reference.xml to setup.xml: - The requirements, installation, configuration, and resources - Changed the constants section to be an <appendix> - Changed pattern.modifiers.xml from refentry to article - Changed pattern.syntax.xml from refentry to article - Changed refsect1 and refsect2 to sections within the new articles - Changed the intro ID from <extname>.intro to intro.<extname> git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248797 c90b9560-bf6c-de11-be94-00142212c4b1
60 lines
1.5 KiB
XML
60 lines
1.5 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<appendix xml:id="pcre.examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Examples of valid patterns</title>
|
|
<itemizedlist>
|
|
<listitem><simpara><literal>/<\/\w+>/</literal></simpara></listitem>
|
|
<listitem><simpara><literal>|(\d{3})-\d+|Sm</literal></simpara></listitem>
|
|
<listitem><simpara><literal>/^(?i)php[34]/</literal></simpara></listitem>
|
|
<listitem><simpara><literal>{^\s+(\s+)?$}</literal></simpara></listitem>
|
|
</itemizedlist>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Examples of invalid patterns</title>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>/href='(.*)'</literal> - missing ending delimiter
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>/\w+\s*\w+/J</literal> - unknown modifier 'J'
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>1-\d3-\d3-\d4|</literal> - missing starting delimiter
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</example>
|
|
</para>
|
|
</appendix>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|
|
|