best place to learn eregi or preg

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CONFIQ
Forum Commoner
Posts: 32
Joined: Fri Oct 18, 2002 3:39 pm
Location: Israel - Raanana

best place to learn eregi or preg

Post 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
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

CONFIQ
Forum Commoner
Posts: 32
Joined: Fri Oct 18, 2002 3:39 pm
Location: Israel - Raanana

Post by CONFIQ »

That's cool

thank you :wink:
CONFIQ
Forum Commoner
Posts: 32
Joined: Fri Oct 18, 2002 3:39 pm
Location: Israel - Raanana

Post by CONFIQ »

that was tooooooooooooooooooooo easy....

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