Hi there,

I don't know about Zend_Validate, but preg_match works with unicode-characters. 
So please read http://www.regular-expressions.info/unicode.html for more info, 
especially the part "Unicode Character Properties".

S.th. like

[\p{L}\.\-_ ]+

could work (untested).

Regards
  Matthias Coy

-------- Original-Nachricht --------
> Datum: Fri, 15 Aug 2008 16:42:35 +0200
> Von: Bruno Friedmann <[EMAIL PROTECTED]>
> An: fw-general <[email protected]>
> Betreff: [fw-general] Zend_Validate regex way to soluce ?

> Hi All,
> I need to allow many special thing to be allowed in a username login
> field.
> (Historical database, so it would nearly impossible to change all this
> username)
> 
> I need all Alpha numeric word present in french,english,german language so
> there a lot's of à é ö ü etc ...
> Plus username could contain _ - . and space
> 
> isAlnum doesn't work ( I'm not surprise about that )
> so I think I need to work with the regex filter
> 
> Is there some expert around with regex which can give me the working regex
> 
> 
> [tests-case-good]
> Clément
> Hans Höln
> Ioda-Net
> Marius_Glad
> Micky.128
> 
> [test-case-bad]
> Some!thing
> Real[Name]
> Zut^Truc
> 
> I will really thank peoples who can help me on this case.
> 
> 
> -- 
> 
>      Bruno Friedmann
> 

Reply via email to