Re: Regular Expression Query



Rik wrote:
Hmmz, I'd use PCRE:

$shortstring = preg_replace('/,+/',', ',$longstring);

Many thanks Rik - worked perfectly!

Regards,

Pete.


.