CVS update: php3/doc/functions

From: Date: Mon, 07 Sep 1998 12:09:09 +0000
Subject: CVS update: php3/doc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-863@lists.php.net to get a copy of this message
Date: Monday September 7, 1998 @ 8:09 Author: cslawi Update of /repository/php3/doc/functions In directory asf:/u2/tmp/cvs-serv14667 Modified Files: regex.sgml Log Message: A couple of cleanups. Index: php3/doc/functions/regex.sgml diff -c php3/doc/functions/regex.sgml:1.9 php3/doc/functions/regex.sgml:1.10 *** php3/doc/functions/regex.sgml:1.9 Sun Mar 29 15:13:17 1998 --- php3/doc/functions/regex.sgml Mon Sep 7 08:09:09 1998 *************** *** 16,27 **** <paramdef>string <parameter>string</parameter></paramdef> <paramdef>array <parameter><optional>regs</optional></parameter></paramdef> </funcsynopsis> ! <para> Searchs <parameter>string</parameter> for matches to the regular expression ! given in <parameter>pattern</parameter>. If matches are found for ! parenthesized substrings of pattern and the function is ! called with the third argument <parameter>regs</parameter>, the matches ! will be stored in the elements of <parameter>regs</parameter>. <para> Searching is case sensitive. --- 16,34 ---- <paramdef>string <parameter>string</parameter></paramdef> <paramdef>array <parameter><optional>regs</optional></parameter></paramdef> </funcsynopsis> ! <simpara> Searchs <parameter>string</parameter> for matches to the regular expression ! given in <parameter>pattern</parameter>. ! ! <simpara> ! If matches are found for parenthesized substrings of ! <parameter>pattern</parameter> and the function is called with ! the third argument <parameter>regs</parameter>, the matches will ! be stored in the elements of ! <parameter>regs</parameter>. $regs[1] will contain the substring ! which starts at the first left parenthesis; $regs[2] will contain the ! substring starting at the second, and so on. $regs[0] will ! contain a copy of <parameter>string</parameter>. <para> Searching is case sensitive. *************** *** 69,83 **** with <parameter>replacement</parameter>. <para> ! If <parameter>pattern</parameter> contains parenthesized substrings, replacement may ! contain substrings of the form <literal>\\<replaceable>digit</replaceable></literal>, which will be replaced by the text matching the digit'th parenthesized substring; <literal>\\0</literal> will produce the entire ! contents of string. Up to nine substrings may be ! used. Parentheses may be nested, in which case they are counted ! by the opening parenthesis. For example, the following code ! snippet prints "This was a test" three times: <example> <title>ereg_replace() example</title> <programlisting> --- 76,91 ---- with <parameter>replacement</parameter>. <para> ! If <parameter>pattern</parameter> contains parenthesized ! substrings, <parameter>replacement</parameter> may contain ! substrings of the form <literal>\\<replaceable>digit</replaceable></literal>, which will be replaced by the text matching the digit'th parenthesized substring; <literal>\\0</literal> will produce the entire ! contents of string. Up to nine substrings may be used. ! Parentheses may be nested, in which case they are counted by the ! opening parenthesis. For example, the following code snippet ! prints "This was a test" three times: <example> <title>ereg_replace() example</title> <programlisting> -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#863) next »