Re: [SMARTY] Capitalize and accented characters

Marcus Bointon <[email protected]> Fri, 19 May 2006 00:24:22 +0100
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
On 16 May 2006, at 18:43, Osiris Pedroso wrote:

> In some SW I wrote, I consider words to match the regexp "[a-zà- 
> ü]", but I
> think capitalize is matching "[a-z]" only.

It would be nicer to match something more general like [\w], if only  
there was a lower-case-only equivalent! I wonder if the unicode  
patterns would work even now? For example, [\p{Ll}] should match all  
lower case letters. Or perhaps you could convert the string to  
unicode before matching on it? Would be slower, but should be much  
more reliable.

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[email protected] | http://www.synchromedia.co.uk

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php