03-17-2008, 04:19 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
preg
I don't know much about preg besides a ^,$,{.+ | *} and more
Now I tried a test, and replacing this:
PHP Code:
<?php
$var = "foobar";
$reg = "^\/{foo}\/$";
if (preg_match($reg, $var))
{
echo preg_replace($reg, '', $var);
}
?>
I got this error:
No ending delimiter '^' found
ANd if I remove that,
I get the $ not found. So can someone help me?
__________________
VillageIdiot can have my babbies ;d
|
|
|
|