Re: regular pattern to match åäö
| From: | Rafael | Date: | Sun, 19 Feb 2006 01:14:17 +0000 |
| Subject: | Re: regular pattern to match åäö | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230708@lists.php.net to get a copy of this message | ||
Just a couple of questions/points to make all clear:
a) are you aware that the "^" at the beggining inverts its meaning?
b) if you want to allow (or "not fail with") "-", put it as the fist
(or last?) character of the class, since it is used to define
ranges, and this avoids misinterpreting its meaning
c) what regex family functions are you using and what would be the
complete expression?
Patrick wrote:
im trying to get my regular pattern to allow åäöÅÄÖ but it refuses to, i have something like this: [^a-zA-ZåäöÅÄÖ0-9-_ ] But this dosent seem to work, anyone got any ideas? -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE rsalazar@innox.com.mx http://www.innox.com.mx