cvs: phpdoc /en/reference/regex book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Philip Olson | Date: | Fri, 21 Dec 2007 23:53:46 +0000 |
| Subject: | cvs: phpdoc /en/reference/regex book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-704@lists.php.net to get a copy of this message | ||
philip Fri Dec 21 23:53:46 2007 UTC
Modified files:
/phpdoc/en/reference/regex book.xml setup.xml constants.xml
examples.xml reference.xml
Log:
MFB: Upgrade to the new-reference-structure
- Split reference.xml into book.xml, setup.xml, constants.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 rest: requirements, installation, configuration, and resources
- Moved constants from reference.xml to new constants.xml
- Moved examples from reference.xml to new examples.xml
- Changed the intro ID from <extname>.intro to intro.<extname>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/book.xml diff -u /dev/null phpdoc/en/reference/regex/book.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/book.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: basic.text --> +<!-- Membership: core --> + +<book xml:id="book.regex" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Regular Expression &Functions; (POSIX Extended)</title> + <titleabbrev>POSIX Regex</titleabbrev> + + <preface xml:id="intro.regex"> + &reftitle.intro; + <tip> + <para> + PHP also supports regular expressions using a Perl-compatible syntax + using the <link linkend="book.pcre">PCRE functions</link>. Those functions + support non-greedy matching, assertions, conditional subpatterns, and a + number of other features not supported by the POSIX-extended regular + expression syntax. + </para> + </tip> + <warning> + <para> + These regular expression functions are not binary-safe. The <link + linkend="book.pcre">PCRE functions</link> are. + </para> + </warning> + <para> + Regular expressions are used for complex string manipulation. + PHP uses the POSIX extended regular expressions as defined by POSIX + 1003.2. For a full description of POSIX regular expressions see the <link xlink:href="&url.regex.man;">regex + man pages</link> included in the regex directory in the PHP distribution. It's + in manpage format, so you'll want to do something along the lines of + <command>man /usr/local/src/regex/regex.7</command> in order to read it. + </para> + </preface> + + &reference.regex.setup; + &reference.regex.constants; + &reference.regex.examples; + &reference.regex.reference; + +</book> +<!-- 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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/setup.xml diff -u /dev/null phpdoc/en/reference/regex/setup.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/setup.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="regex.setup"> + &reftitle.setup; + + <section xml:id="regex.requirements"> + &reftitle.required; + &no.requirement; + </section> + + &reference.regex.configure; + + <section xml:id="regex.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section xml:id="regex.resources"> + &reftitle.resources; + &no.resource; + </section> + +</chapter> + +<!-- 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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/constants.xml diff -u /dev/null phpdoc/en/reference/regex/constants.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/constants.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="regex.constants"> + &reftitle.constants; + &no.constants; +</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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/examples.xml diff -u /dev/null phpdoc/en/reference/regex/examples.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/examples.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="regex.examples"> + &reftitle.examples; + <para> + <example> + <title>Regular Expression Examples</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Returns true if "abc" is found anywhere in $string. +ereg("abc", $string); + +// Returns true if "abc" is found at the beginning of $string. +ereg("^abc", $string); + +// Returns true if "abc" is found at the end of $string. +ereg("abc$", $string); + +// Returns true if client browser is Netscape 2, 3 or MSIE 3. +eregi("(ozilla.[23]|MSIE.3)", $_SERVER["HTTP_USER_AGENT"]); + +// Places three space separated words into $regs[1], $regs[2] and $regs[3]. +ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string, $regs); + +// Put a <br /> tag at the beginning of $string. +$string = ereg_replace("^", "<br />", $string); + +// Put a <br /> tag at the end of $string. +$string = ereg_replace("$", "<br />", $string); + +// Get rid of any newline characters in $string. +$string = ereg_replace("\n", "", $string); +?> +]]> + </programlisting> + </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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/reference.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/regex/reference.xml diff -u phpdoc/en/reference/regex/reference.xml:1.15 phpdoc/en/reference/regex/reference.xml:1.16 --- phpdoc/en/reference/regex/reference.xml:1.15 Mon Dec 10 17:06:08 2007 +++ phpdoc/en/reference/regex/reference.xml Fri Dec 21 23:53:46 2007 @@ -1,113 +1,21 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- Purpose: basic.text --> -<!-- Membership: core --> +<!-- $Revision: 1.16 $ --> - <reference xml:id="ref.regex" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Regular Expression Functions (POSIX Extended)</title> - <titleabbrev>POSIX Regex</titleabbrev> +<reference xml:id="ref.regex" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Regex &Functions;</title> + <partintro xml:id="regex.seealso"> + &reftitle.seealso; + <para> + For regular expressions in Perl-compatible syntax have a look at the + <link linkend="ref.pcre">PCRE functions</link>. The simpler shell style + wildcard pattern matching is provided by <function>fnmatch</function>. + </para> + </partintro> - <partintro> - <section xml:id="regex.intro"> - &reftitle.intro; - <tip> - <para> - PHP also supports regular expressions using a Perl-compatible syntax - using the <link linkend="ref.pcre">PCRE functions</link>. Those functions - support non-greedy matching, assertions, conditional subpatterns, and a - number of other features not supported by the POSIX-extended regular - expression syntax. - </para> - </tip> - <warning> - <para> - These regular expression functions are not binary-safe. The <link - linkend="ref.pcre">PCRE functions</link> are. - </para> - </warning> - <para> - Regular expressions are used for complex string manipulation. - PHP uses the POSIX extended regular expressions as defined by POSIX - 1003.2. For a full description of POSIX regular expressions see the <link xlink:href="&url.regex.man;">regex - man pages</link> included in the regex directory in the PHP distribution. It's - in manpage format, so you'll want to do something along the lines of - <command>man /usr/local/src/regex/regex.7</command> in order to read it. - </para> - </section> - - <section xml:id="regex.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.regex.configure; + &reference.regex.entities.functions; - <section xml:id="regex.configuration"> - &reftitle.runtime; - &no.config; - </section> +</reference> - <section xml:id="regex.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="regex.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="regex.examples"> - &reftitle.examples; - <para> - <example> - <title>Regular Expression Examples</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Returns true if "abc" is found anywhere in $string. -ereg("abc", $string); - -// Returns true if "abc" is found at the beginning of $string. -ereg("^abc", $string); - -// Returns true if "abc" is found at the end of $string. -ereg("abc$", $string); - -// Returns true if client browser is Netscape 2, 3 or MSIE 3. -eregi("(ozilla.[23]|MSIE.3)", $_SERVER["HTTP_USER_AGENT"]); - -// Places three space separated words into $regs[1], $regs[2] and $regs[3]. -ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string, $regs); - -// Put a <br /> tag at the beginning of $string. -$string = ereg_replace("^", "<br />", $string); - -// Put a <br /> tag at the end of $string. -$string = ereg_replace("$", "<br />", $string); - -// Get rid of any newline characters in $string. -$string = ereg_replace("\n", "", $string); -?> -]]> - </programlisting> - </example> - </para> - </section> - - <section xml:id="regex.seealso"> - &reftitle.seealso; - <para> - For regular expressions in Perl-compatible syntax have a look at the - <link linkend="ref.pcre">PCRE functions</link>. The simpler shell style - wildcard pattern matching is provided by <function>fnmatch</function>. - </para> - </section> - </partintro> - - &reference.regex.entities.functions; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/book.xml diff -u /dev/null phpdoc/en/reference/regex/book.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/book.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: basic.text --> +<!-- Membership: core --> + +<book xml:id="book.regex" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Regular Expression &Functions; (POSIX Extended)</title> + <titleabbrev>POSIX Regex</titleabbrev> + + <preface xml:id="intro.regex"> + &reftitle.intro; + <tip> + <para> + PHP also supports regular expressions using a Perl-compatible syntax + using the <link linkend="book.pcre">PCRE functions</link>. Those functions + support non-greedy matching, assertions, conditional subpatterns, and a + number of other features not supported by the POSIX-extended regular + expression syntax. + </para> + </tip> + <warning> + <para> + These regular expression functions are not binary-safe. The <link + linkend="book.pcre">PCRE functions</link> are. + </para> + </warning> + <para> + Regular expressions are used for complex string manipulation. + PHP uses the POSIX extended regular expressions as defined by POSIX + 1003.2. For a full description of POSIX regular expressions see the <link xlink:href="&url.regex.man;">regex + man pages</link> included in the regex directory in the PHP distribution. It's + in manpage format, so you'll want to do something along the lines of + <command>man /usr/local/src/regex/regex.7</command> in order to read it. + </para> + </preface> + + &reference.regex.setup; + &reference.regex.constants; + &reference.regex.examples; + &reference.regex.reference; + +</book> +<!-- 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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/setup.xml diff -u /dev/null phpdoc/en/reference/regex/setup.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/setup.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="regex.setup"> + &reftitle.setup; + + <section xml:id="regex.requirements"> + &reftitle.required; + &no.requirement; + </section> + + &reference.regex.configure; + + <section xml:id="regex.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section xml:id="regex.resources"> + &reftitle.resources; + &no.resource; + </section> + +</chapter> + +<!-- 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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/constants.xml diff -u /dev/null phpdoc/en/reference/regex/constants.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/constants.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="regex.constants"> + &reftitle.constants; + &no.constants; +</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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/regex/examples.xml diff -u /dev/null phpdoc/en/reference/regex/examples.xml:1.2 --- /dev/null Fri Dec 21 23:53:46 2007 +++ phpdoc/en/reference/regex/examples.xml Fri Dec 21 23:53:46 2007 @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="regex.examples"> + &reftitle.examples; + <para> + <example> + <title>Regular Expression Examples</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Returns true if "abc" is found anywhere in $string. +ereg("abc", $string); + +// Returns true if "abc" is found at the beginning of $string. +ereg("^abc", $string); + +// Returns true if "abc" is found at the end of $string. +ereg("abc$", $string); + +// Returns true if client browser is Netscape 2, 3 or MSIE 3. +eregi("(ozilla.[23]|MSIE.3)", $_SERVER["HTTP_USER_AGENT"]); + +// Places three space separated words into $regs[1], $regs[2] and $regs[3]. +ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string, $regs); + +// Put a <br /> tag at the beginning of $string. +$string = ereg_replace("^", "<br />", $string); + +// Put a <br /> tag at the end of $string. +$string = ereg_replace("$", "<br />", $string); + +// Get rid of any newline characters in $string. +$string = ereg_replace("\n", "", $string); +?> +]]> + </programlisting> + </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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/reference.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/regex/reference.xml diff -u phpdoc/en/reference/regex/reference.xml:1.15 phpdoc/en/reference/regex/reference.xml:1.16 --- phpdoc/en/reference/regex/reference.xml:1.15 Mon Dec 10 17:06:08 2007 +++ phpdoc/en/reference/regex/reference.xml Fri Dec 21 23:53:46 2007 @@ -1,113 +1,21 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- Purpose: basic.text --> -<!-- Membership: core --> +<!-- $Revision: 1.16 $ --> - <reference xml:id="ref.regex" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Regular Expression Functions (POSIX Extended)</title> - <titleabbrev>POSIX Regex</titleabbrev> +<reference xml:id="ref.regex" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Regex &Functions;</title> + <partintro xml:id="regex.seealso"> + &reftitle.seealso; + <para> + For regular expressions in Perl-compatible syntax have a look at the + <link linkend="ref.pcre">PCRE functions</link>. The simpler shell style + wildcard pattern matching is provided by <function>fnmatch</function>. + </para> + </partintro> - <partintro> - <section xml:id="regex.intro"> - &reftitle.intro; - <tip> - <para> - PHP also supports regular expressions using a Perl-compatible syntax - using the <link linkend="ref.pcre">PCRE functions</link>. Those functions - support non-greedy matching, assertions, conditional subpatterns, and a - number of other features not supported by the POSIX-extended regular - expression syntax. - </para> - </tip> - <warning> - <para> - These regular expression functions are not binary-safe. The <link - linkend="ref.pcre">PCRE functions</link> are. - </para> - </warning> - <para> - Regular expressions are used for complex string manipulation. - PHP uses the POSIX extended regular expressions as defined by POSIX - 1003.2. For a full description of POSIX regular expressions see the <link xlink:href="&url.regex.man;">regex - man pages</link> included in the regex directory in the PHP distribution. It's - in manpage format, so you'll want to do something along the lines of - <command>man /usr/local/src/regex/regex.7</command> in order to read it. - </para> - </section> - - <section xml:id="regex.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.regex.configure; + &reference.regex.entities.functions; - <section xml:id="regex.configuration"> - &reftitle.runtime; - &no.config; - </section> +</reference> - <section xml:id="regex.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="regex.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="regex.examples"> - &reftitle.examples; - <para> - <example> - <title>Regular Expression Examples</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Returns true if "abc" is found anywhere in $string. -ereg("abc", $string); - -// Returns true if "abc" is found at the beginning of $string. -ereg("^abc", $string); - -// Returns true if "abc" is found at the end of $string. -ereg("abc$", $string); - -// Returns true if client browser is Netscape 2, 3 or MSIE 3. -eregi("(ozilla.[23]|MSIE.3)", $_SERVER["HTTP_USER_AGENT"]); - -// Places three space separated words into $regs[1], $regs[2] and $regs[3]. -ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string, $regs); - -// Put a <br /> tag at the beginning of $string. -$string = ereg_replace("^", "<br />", $string); - -// Put a <br /> tag at the end of $string. -$string = ereg_replace("$", "<br />", $string); - -// Get rid of any newline characters in $string. -$string = ereg_replace("\n", "", $string); -?> -]]> - </programlisting> - </example> - </para> - </section> - - <section xml:id="regex.seealso"> - &reftitle.seealso; - <para> - For regular expressions in Perl-compatible syntax have a look at the - <link linkend="ref.pcre">PCRE functions</link>. The simpler shell style - wildcard pattern matching is provided by <function>fnmatch</function>. - </para> - </section> - </partintro> - - &reference.regex.entities.functions; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml