[PHP] Re: regular pattern to match åäö

2006-02-21 Thread Cristian MARIN
Normally the \w in documentation is written that it does this trick matching based on the locale that your machine having the pcre installed use: http://www.php.net/manual/en/reference.pcre.pattern.syntax.php ... A word character is any letter or digit or the underscore character, that is,

[PHP] Re: regular pattern to match åäö

2006-02-18 Thread Manuel Lemos
Hello, on 02/18/2006 07:42 PM Patrick said the following: 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? It seems your message is in Windows-1252 encoding. Make

[PHP] Re: regular pattern to match åäö

2006-02-18 Thread Rafael
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