Delimiter must not be alphanumeric or backslash
| From: | Gentian Hila | Date: | Sat, 05 Jul 2003 17:57:17 +0000 |
| Subject: | Delimiter must not be alphanumeric or backslash | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154067@lists.php.net to get a copy of this message | ||
hello there,
I am just learning PHP now, so i am very new to it.
I was trying the following code which i received from a PHP book. I am using Version 4.3.1 installed
in windows
<?
$text = "pot post pat patent";
if(preg_match( "\bp\w+t\b", $text, $array ) )
print $array[0];
?>
I was expecting everuthing to go normally , but i get the following error:
Warning: Delimiter must not be alphanumeric or backslash in f:\apache\apache\htdocs\index.php on
line 3
Does anybody have an idea what might be wrong ?
Gentian Hila