> How do I parse the above string so that the result replaces the [url]
> parts with the appropriate HTML?

regular expressions do the job ;)

http://php.net/preg_replace

something like this (untested):
$content=preg_replace("/\[url\]([^\[]+)\[/url\]/","<a
href=''>$1</a>',$code);



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list




SPONSORED LINKS
Php mysql Job postings


YAHOO! GROUPS LINKS




Reply via email to