Re: About regexps on Tapestry

2009-09-21 Thread Andreas Andreou
AFAIK \p{Alpha}, \p{javaLowerCase}, \p{Lower} and others mentioned all deal with ascii If you want to match any letter in any language then \p{L} and that matches accented ones as well. On Mon, Sep 21, 2009 at 1:41 PM, Madtyn wrote: > I already use quickRex, a wonderful and handy tool but I did

Re: About regexps on Tapestry

2009-09-21 Thread Madtyn
I already use quickRex, a wonderful and handy tool but I didn't know which flavour did I have to use, so I was confused about that. About the \p{javaLowerCase}\p{javaUpperCase}, it seems to have problems with 'ñ' spanish letter and letters with graphical accents. Maybe I did something wrong. I fin

Re: About regexps on Tapestry

2009-09-20 Thread Martin Strand
There are java specific operators that match letters: \p{javaLowerCase} \p{javaUpperCase} So to make sure a string only contains letters (in any language) you could do this: ^[\p{javaLowerCase}\p{javaUpperCase}]+$ If you're using Eclipse you might find this plugin handy, it allows you to test

Re: About regexps on Tapestry

2009-09-20 Thread Thiago H. de Paula Figueiredo
Em Sun, 20 Sep 2009 21:02:57 -0300, Alejandro Scandroli escreveu: On Mon, Sep 21, 2009 at 12:33 AM, Madtyn wrote: 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 ot

Re: About regexps on Tapestry

2009-09-20 Thread Alejandro Scandroli
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 - htt

About regexps on Tapestry

2009-09-20 Thread Madtyn
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 kno