Page 1 of 1
special character replace with space..
Posted: Sat Jul 25, 2009 10:53 am
by varma457
Hi,
I have a problem with wich I have to replace special character with space...
I tried it for removing special characters..
$output = preg_replace("/[^A-N\s?\*\&P-Y\s?\*\&a-z\s?\*\&]/"," ",$input);
But i dont how to replace with spaces...
Re: special character replace with space..
Posted: Sat Jul 25, 2009 12:12 pm
by jackpf
How is anyone going to be able to tell you unless you state what the "special character" is?
Do you mean anything that isn't a-z?
Re: special character replace with space..
Posted: Sat Jul 25, 2009 12:45 pm
by prometheuzz
jackpf wrote:How is anyone going to be able to tell you unless you state what the "special character" is?
...
My thoughts exactly, although I wouldn't use all the distracting colors.
Re: special character replace with space..
Posted: Sat Jul 25, 2009 1:29 pm
by jackpf
Oh...I thought that was the theme of this thread

Re: special character replace with space..
Posted: Sat Jul 25, 2009 2:25 pm
by prometheuzz
jackpf wrote:Oh...I thought that was the theme of this thread

Cr@p! Sorry Jack, I'm just awfully slow today. It didn't even occur to me that your colourful post might be a reaction to the OP's post...
Re: special character replace with space..
Posted: Sat Jul 25, 2009 3:47 pm
by jackpf