From fdb870870cc2291498b7b616c3238f648a0af5a6 Mon Sep 17 00:00:00 2001 From: Monte Ohrt Date: Thu, 20 Jul 2000 18:03:35 +0000 Subject: [PATCH] updated preg_match() example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@28667 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pcre.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/pcre.xml b/functions/pcre.xml index 68b9cfc2eb..15e44cd887 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -107,6 +107,11 @@ if (preg_match ("/page\s+#(\d+)/i", "Go to page #9.", $parts)) { echo "domain name is: ".$matches[2]."\n"; + This example will produce: + + domain name is: php.net + + See also preg_match_all, preg_replace, and preg_split.