N nealr Senior member Dec 20, 2000 771 0 0 Feb 13, 2004 #1 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!
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!
B Barnaby W. Füi Elite Member Aug 14, 2001 12,343 0 0 Feb 13, 2004 #2 I don't get what your first sentence has to do with your second?
N nealr Senior member Dec 20, 2000 771 0 0 Feb 13, 2004 #3 Originally posted by: BingBongWongFooey I don't get what your first sentence has to do with your second? Click to expand... 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?
Originally posted by: BingBongWongFooey I don't get what your first sentence has to do with your second? Click to expand... 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?
B Barnaby W. Füi Elite Member Aug 14, 2001 12,343 0 0 Feb 13, 2004 #4 Ah. str_replace should do the trick for you.
N nealr Senior member Dec 20, 2000 771 0 0 Feb 15, 2004 #5 Originally posted by: BingBongWongFooey Ah. str_replace should do the trick for you. Click to expand... Perfect... I love you BingBongWongFooey!
Originally posted by: BingBongWongFooey Ah. str_replace should do the trick for you. Click to expand... Perfect... I love you BingBongWongFooey!