Hi Madtyn

Your pattern looks OK to me, it should work, just be sure the file
where you are writing the pattern is encoded in UTF-8.

This is the pattern I use: [a-zA-ZáéíóúñçÁÉÍÓÚÑÇ]+
Again, be sure your file is correctly encoded in UTF-8 and it should work.

Saludos.

--
Alejandro Scandroli - http://weblog.amneris.es/
Amneris: We build process-driven web applications.
http://www.amneris.es



On Mon, Sep 21, 2009 at 12:33 AM, Madtyn <mad...@gmail.com> wrote:
> Hello!
>
> I have some doubts about the regexp validators in Tapestry. I have
> learnt some about regexp but after making some validating with
> success, I haven't been able to do two things:
>
> 1) Which flavour of regexp does Tapestry use? I have looked for it on
> the Internet but I couldn't find out. I know that there are the regexp
> from Javascript, Jakarta and many others but I don't know which one of
> them Tapestry's belongs to.
>
> 2) Because of the former, I can't make a correct regexp for name and
> surname fields. I've tried the following:
>
> nombre-regexp=^([a-zÑñA-Z _.-])+         // This is the name
> apellidos-regexp=^([a-zÑñA-Z _.-])+       // This is the surname
>
>   I'm trying to avoid all characters which are not letters, (you
> shouldn't have a name containing numbers, dots....) but this is the
> more accurate I got and allow numbers (not at the beginning) and it's
> not what I want.
>
>   Maybe some spanish Tapestry experts around here could help me with
> getting the 'ñ' spanish letter into the regular expressión, as well as
> accents.
>
>
> Thank you very much on advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to