Posted by Ciaran on 12/03/07 16:33
Hi Can someone please give me a hand adapting this expression? I need
it to add a space into all words longer than 14 characters that are
not contained within [square brackets]
$result = preg_replace("/([^\s]{14})/","$1 ",$result);
It currently adds a space into all words that are longer than 14
characters but this is breaking another function I'm using which
extracts urls and other info from inside square brackets.
Thanks a lot!
Ciarán
Navigation:
[Reply to this message]
|