I trying to understand reg expressions by doing a script that converts bulletin board code similar to to html code which I have done in a function which is now about 4 lines of code what I would really like no is to be able to convert to first so I can continue to use str_replace.
I have tried
eregi_replace("\[(*.)\]", strtolower("[\1]"), $text);
but this doesn't seem to work.
Am I going about this the wrong way?
or am I on the right track!
Thanks in advance