cvs: phpdoc-zh /reference/pcre constants.xml reference.xml
| From: | Dallas Thunder | Date: | Wed, 03 Sep 2003 03:28:47 +0000 |
| Subject: | cvs: phpdoc-zh /reference/pcre constants.xml reference.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1703@lists.php.net to get a copy of this message | ||
dallas Tue Sep 2 23:28:47 2003 EDT
Added files:
/phpdoc-zh/reference/pcre constants.xml reference.xml
Log:
Reference done.
Index: phpdoc-zh/reference/pcre/constants.xml
+++ phpdoc-zh/reference/pcre/constants.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.1 Maintainer: dallas Status: ready -->
<section id="pcre.constants">
&reftitle.constants;
&extension.constants;
<table>
<title>PREG ³£Á¿</title>
<tgroup cols="2">
<thead>
<row>
<entry>³£Á¿</entry>
<entry>˵Ã÷</entry>
</row>
</thead>
<tbody>
<row>
<entry>PREG_PATTERN_ORDER</entry>
<entry>
¶Ô½á¹ûÅÅÐòʹµÃ $matches[0]
ΪÕû¸öģʽµÄÆ¥Åä½á¹ûµÄÊý×飬$matches[1]
ΪµÚÒ»¸öÀ¨ºÅÄÚµÄ×ÓģʽËùÆ¥ÅäµÄ×Ö·û´®µÄÊý×飬µÈµÈ¡£±¾±ê¼Ç½öÓÃÓÚ
<function>preg_match_all</function>¡£
</entry>
</row>
<row>
<entry>PREG_SET_ORDER</entry>
<entry>
¶Ô½á¹ûÅÅÐòʹµÃ $matches[0]
ΪµÚÒ»×鯥Åä½á¹ûµÄÊý×飬$matches[1]
ΪµÚ¶þ×鯥Åä½á¹ûµÄÊý×飬µÈµÈ¡£±¾±ê¼Ç½öÓÃÓÚ
<function>preg_match_all</function>¡£
</entry>
</row>
<row>
<entry>PREG_OFFSET_CAPTURE</entry>
<entry>
¼û <constant>PREG_SPLIT_OFFSET_CAPTURE</constant>
µÄ˵Ã÷¡£±¾±ê¼Ç×Ô <literal>PHP 4.3.0</literal> Æð¿ÉÓá£
</entry>
</row>
<row>
<entry>PREG_SPLIT_NO_EMPTY</entry>
<entry>
±¾±ê¼Çʹ <function>preg_split</function>
½ö·µ»Ø·Ç¿ÕµÄ½á¹û¡£
</entry>
</row>
<row>
<entry>PREG_SPLIT_DELIM_CAPTURE</entry>
<entry>
±¾±ê¼Çʹ <function>preg_split</function>
Ò²²¶»ñ¶¨½ç·ûģʽÖеÄÀ¨ºÅ±í´ï¡£±¾±ê¼Ç×Ô
<literal>PHP 4.0.5</literal> Æð¿ÉÓá£
</entry>
</row>
<row>
<entry>PREG_SPLIT_OFFSET_CAPTURE</entry>
<entry>
Èç¹ûÉ趨±¾±ê¼Ç£¬¶Ôÿ¸ö³öÏֵį¥Åä½á¹ûҲͬʱ·µ»ØÆä¸½ÊôµÄ×Ö·û´®Æ«ÒÆÁ¿¡£×¢ÒâÕâ¸Ä±äÁË·µ»ØµÄÊý×éµÄÖµ£¬Ê¹ÆäÖеÄÿ¸öµ¥ÔªÒ²ÊÇÒ»¸öÊý×飬ÆäÖеÚÒ»ÏîΪƥÅä×Ö·û´®£¬µÚ¶þÏîΪÆäÆ«ÒÆÁ¿¡£±¾±ê¼Ç×Ô
<literal>PHP 4.3.0</literal> Æð¿ÉÓÃÇÒ½öÓÃÓÚ
<function>preg_split</function>¡£
</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
<!-- 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
-->
Index: phpdoc-zh/reference/pcre/reference.xml
+++ phpdoc-zh/reference/pcre/reference.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready -->
<reference id="ref.pcre">
<title>ÕýÔò±í´ïʽº¯Êý¿â£¨Perl ¼æÈÝ£©</title>
<titleabbrev>PCRE</titleabbrev>
<partintro>
<section id="pcre.intro">
&reftitle.intro;
<para>
±¾ÀຯÊýÖÐËùʹÓõÄģʽ¼«ÆäÀàËÆ
Perl¡£±í´ïʽӦ±»°üº¬ÔÚ¶¨½ç·ûÖУ¬ÈçбÏߣ¨/£©¡£Èκβ»ÊÇ×Öĸ¡¢Êý×Ö»ò·´Ð±Ïߣ¨\£©µÄ×Ö·û¶¼¿ÉÒÔ×÷Ϊ¶¨½ç·û¡£Èç¹û×÷Ϊ¶¨½ç·ûµÄ×Ö·û±ØÐë±»ÓÃÔÚ±í´ïʽ±¾ÉíÖУ¬ÔòÐèÒªÓ÷´Ð±ÏßתÒå¡£×Ô
PHP 4.0.4 Æð£¬Ò²¿ÉÒÔʹÓà Perl
·ç¸ñµÄ ()£¬{}£¬[] ºÍ <> Æ¥Å䶨½ç·û¡£
</para>
<para>
½áÊø¶¨½ç·ûºó¿ÉÒÔ¸úÉϲ»Í¬µÄÐÞÕý·ûÒÔÓ°ÏìÆ¥Å䷽ʽ¡£¼û<link
linkend="pcre.pattern.modifiers">ģʽÐÞÕý·û</link>¡£
</para>
<para>
PHP Ò²Ö§³Ö POSIX À©Õ¹Óï·¨µÄÕýÔò±í´ïʽ£¬¼û<link
linkend="ref.regex">ÕýÔò±í´ïʽº¯Êý¿â£¨POSIX
À©Õ¹£©</link>¡£
</para>
</section>
<section id="pcre.requirements">
&reftitle.required;
<para>
ÕýÔò±í´ïʽµÄÖ§³ÖÊÇÓÉ PCRE
¿âÌṩµÄ£¬ÕâÊǸö¿ª·ÅÔ´´úÂëµÄÈí¼þ£¬×÷ÕßΪ
Philip
Hazel£¬°æÈ¨ÊôÓÚÓ¢¹ú½£ÇÅ´óѧ¡£¿ÉÓÚÒÔϵØÖ·»ñµÃ£º<ulink
url="&url.pcre;">&url.pcre;</ulink>¡£
</para>
</section>
&reference.pcre.configure;
<section id="pcre.configuration">
&reftitle.runtime;
&no.config;
</section>
<section id="pcre.resources">
&reftitle.resources;
&no.resource;
</section>
&reference.pcre.constants;
<section id="pcre.examples">
&reftitle.examples;
<para>
<example>
<title>ºÏ·¨µÄģʽ¾ÙÀý</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>·Ç·¨µÄģʽ¾ÙÀý</title>
<itemizedlist>
<listitem>
<simpara>
<literal>/href='(.*)'</literal> - ȱÉÙ½áÊø¶¨½ç·û
</simpara>
</listitem>
<listitem>
<simpara>
<literal>/\w+\s*\w+/J</literal> - δ֪µÄÐÞÕý·û 'J'
</simpara>
</listitem>
<listitem>
<simpara>
<literal>1-\d3-\d3-\d4|</literal> - ȱÉÙÆðʼ¶¨½ç·û
</simpara>
</listitem>
</itemizedlist>
</example>
</para>
</section>
</partintro>
&reference.pcre.functions;
</reference>
<!-- 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
-->