derick Fri Jun 20 17:31:15 2003 EDT
Modified files:
/phpdoc/en/reference/regex configure.xml reference.xml
/phpdoc/en/reference/regex/functionsereg-replace.xml ereg.xml
eregi-replace.xml eregi.xml
split.xml spliti.xml
sql-regcase.xml
Log:
- Cleanup
Index: phpdoc/en/reference/regex/configure.xml
diff -u phpdoc/en/reference/regex/configure.xml:1.2
phpdoc/en/reference/regex/configure.xml:1.3
--- phpdoc/en/reference/regex/configure.xml:1.2 Tue Jan 7 15:21:38 2003
+++ phpdoc/en/reference/regex/configure.xml Fri Jun 20 17:31:15 2003
@@ -1,17 +1,17 @@
-
+
&reftitle.install;
+
+
+ Do not change the TYPE unless you know what you are doing.
+
+
To enable regexp support configure PHP
--with-regex[=TYPE]. TYPE can be one of
system, apache, php. The default is to use php.
-
-
- Do not change the TYPE unless you know what you are doing.
-
-
&windows.builtin;
Index: phpdoc/en/reference/regex/reference.xml
diff -u phpdoc/en/reference/regex/reference.xml:1.7
phpdoc/en/reference/regex/reference.xml:1.8
--- phpdoc/en/reference/regex/reference.xml:1.7 Thu Apr 17 08:17:50 2003
+++ phpdoc/en/reference/regex/reference.xml Fri Jun 20 17:31:15 2003
@@ -1,5 +1,5 @@
-
+
Regular Expression Functions (POSIX Extended)
Regexps
@@ -7,7 +7,7 @@
&reftitle.intro;
-
+
PHP also supports regular expressions using a Perl-compatible syntax
using the PCRE functions. Those functions
@@ -15,7 +15,7 @@
number of other features not supported by the POSIX-extended regular
expression syntax.
-
+
These regular expression functions are not binary-safe. The spliti
+
+
These functions all take a regular expression string as their
first argument. PHP uses the POSIX extended regular expressions
as defined by POSIX 1003.2. For a full description of POSIX
@@ -84,35 +86,31 @@
Regular Expression Examples
@@ -129,7 +127,7 @@
-&reference.regex.functions;
+ &reference.regex.functions;
+
@@ -8,19 +8,12 @@
Description
-
- stringereg_replace
- stringpattern
- stringreplacement
- stringstring
-
-
-
- preg_replace, which uses a Perl-compatible
- regular expression syntax, is often a faster alternative to
- ereg_replace.
-
-
+
+ stringereg_replace
+ stringpattern
+ stringreplacement
+ stringstring
+
This function scans string for matches to
pattern, then replaces the matched text
@@ -49,8 +42,10 @@
For example, the following code snippet prints "This was a test"
three times:
+
+
- ereg_replace Example
+ ereg_replace example
+
+
+ preg_replace, which uses a Perl-compatible
+ regular expression syntax, is often a faster alternative to
+ ereg_replace.
+
+
- See also
- ereg,
- eregi,
- eregi_replace,
- str_replace, and
+ See also ereg, eregi,
+ eregi_replace, str_replace, and
preg_match.
-
+
@@ -8,12 +8,12 @@
Description
-
- boolereg
- stringpattern
- stringstring
- arrayregs
-
+
+ boolereg
+ stringpattern
+ stringstring
+ arrayregs
+
preg_match, which uses a Perl-compatible
@@ -23,7 +23,8 @@
Searches a string for matches to the regular
- expression given in pattern.
+ expression given in pattern in a case-sensitive
+ way.
If matches are found for parenthesized substrings of
@@ -36,19 +37,16 @@
contain a copy of the complete string matched.
-
- Up to (and including) PHP 4.1.0 $regs will be
- filled with exactly ten elements, even though more or fewer than
- ten parenthesized substrings may actually have matched. This has
- no effect on ereg's ability to match more
- substrings. If no matches are found, $regs
- will not be altered by ereg.
-
+
+ Up to (and including) PHP 4.1.0 $regs will be
+ filled with exactly ten elements, even though more or fewer than
+ ten parenthesized substrings may actually have matched. This has
+ no effect on ereg's ability to match more
+ substrings. If no matches are found, $regs
+ will not be altered by ereg.
+
- Searching is case sensitive.
-
-
Returns &true; if a match for pattern was
found in string, or &false; if no matches
were found or an error occurred.
@@ -56,6 +54,8 @@
The following code snippet takes a dat