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,
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
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
3 matches
Mail list logo