By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,709 Members | 1,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,709 IT Pros & Developers. It's quick & easy.

ereg_replace() problems

P: n/a

I would like to use the ereg_replace() function to replace wiki-like
syntax, for example:

becomes <a href="index.php?page=somepage">somepage</a>

becomes <i>hello</i>

The problem with the first example is that "somepage" occurs twice
after the replacement, the problem with the second example is that the
opening and closing tags "**" are identical. Can anyone refer me to a
good page on ereg_replace(), or help me with these examples?


Apr 10 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.