Reply to Re: custom WORD-BREAK

Your name:

Reply:


Posted by Ben on 04/10/07 12:37

On 10 Apr, 12:46, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> Ben wrote:
> > Is there a way, shoer of processing the strings to turn all commas
> > into spaces beforehand?
>
> Wouldn't a better conversion be from a comma to "comma-space".
>
> In PHP, this would be:
>
> $text = str_replace(',', ', ', $text);
>
> or even better:
>
> $text = preg_replace('/\,([^\s])/', ', $1', $text);
>
> Anyone know if Internet Exploder supports ZWSP yet?
>
> $text = preg_replace('/\,([^\s])/', ',&#8203;$1', $text);
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~http://tobyinkster.co.uk/contact
> Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
>
> * = I'm getting there!

I thought I might have to do that - you're right, it is a simple fix!
Cheers,

Ben

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация