diff --git a/functions/oracle.xml b/functions/oracle.xml index fe53b22914..af48b47bb4 100644 --- a/functions/oracle.xml +++ b/functions/oracle.xml @@ -1,5 +1,5 @@ - + Oracle functions Oracle @@ -514,7 +514,9 @@ echo $results[1]; user like this: +@TNSNAME", "pass"); +]]> diff --git a/functions/pcre.xml b/functions/pcre.xml index e1e8cec6ec..34f1e38aca 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (Perl-Compatible) PCRE @@ -211,7 +211,7 @@ preg_match_all ("|<[^>]+>(.*)]+>|U", "example:
this is a test
", $out, PREG_PATTERN_ORDER); print $out[0][0].", ".$out[0][1]."\n"; -print $out[1][0].", ".$out[1][1]."\n" +print $out[1][0].", ".$out[1][1]."\n"; ]]> @@ -239,7 +239,7 @@ example: , this is a test ]+>(.*)]+>|U", +preg_match_all ("|<[^>]+>(.*)]+>|U", "example:
this is a test
", $out, PREG_SET_ORDER); print $out[0][0].", ".$out[0][1]."\n"; @@ -293,15 +293,15 @@ preg_match_all ("/\(? (\d{3})? \)? (?(1) [\-\s] ) \d{3}-\d{4}/x", // it must match the second set of parentheses in the regular expression // itself, which would be the ([\w]+) in this case. The extra backslash is // required because the string is in double quotes. -$html = "bold textclick me +$html = "bold textclick me; preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches); for ($i=0; $i< count($matches[0]); $i++) { -echo "matched: ".$matches[0][$i]."\n"; -echo "part 1: ".$matches[1][$i]."\n"; -echo "part 2: ".$matches[3][$i]."\n"; -echo "part 3: ".$matches[4][$i]."\n\n"; + echo "matched: ".$matches[0][$i]."\n"; + echo "part 1: ".$matches[1][$i]."\n"; + echo "part 2: ".$matches[3][$i]."\n"; + echo "part 3: ".$matches[4][$i]."\n\n"; } ]]>