Thread: preg
View Single Post
Old 03-17-2008, 04:19 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default 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
Orc is offline  
Reply With Quote