php question about changing a line of code.

nealr

Senior member
Dec 20, 2000
771
0
0
Ok, the following line of code is some kind of replace statement to replace "
" with "\n"

$txt = preg_replace( "/
|<br \/>/", "\n", $txt );

I want a line of code that replaces "[url=http://" with "[url=http://www.test.com/me?url="

Any ideas?
Thanks!
 

nealr

Senior member
Dec 20, 2000
771
0
0
Originally posted by: BingBongWongFooey
I don't get what your first sentence has to do with your second?

probably nothing, I just took that line of code out of the existing pages, in case someone didn't know what the replace function looks like?