Posted by Paul Lautman on 12/03/07 22:12
Ciaran wrote:
> 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
I need more information to answer this, but no point in asking for it as I'm
sure in your expert view I have all Ineed!
Navigation:
[Reply to this message]
|