Page 1 of 1

best place to learn eregi or preg

Posted: Thu Dec 05, 2002 1:46 pm
by CONFIQ
i really don't get it... i want to make my own BBC code but i'm stack with eregi and preg. I have i clew how it works but i can't do it...

I've try like this

[syntax=php]$text = preg_replace("[b](.+?)[/b]", "<b>\1 </b>", $text);[/syntax]
but it's not working :(

plz help

Posted: Thu Dec 05, 2002 6:12 pm
by JPlush76

Posted: Thu Dec 05, 2002 8:26 pm
by CONFIQ
That's cool

thank you :wink:

Posted: Fri Dec 06, 2002 9:04 pm
by CONFIQ
that was tooooooooooooooooooooo easy....

Can u give me just a bit harder (plz not from php.net)