Re: Fw: [PHP] regular pattern to match XXX
| From: | Chris | Date: | Tue, 21 Feb 2006 02:05:49 +0000 |
| Subject: | Re: Fw: [PHP] regular pattern to match XXX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230780@lists.php.net to get a copy of this message | ||
Satyam wrote:
----- Original Message ----- From: "Patrick" <pafo@pafo.net>Are these characters multibyte? You might need to use the mb_ereg_match function rather than the regular ereg functions: http://www.php.net/manual/en/function.mb-ereg-match.phpim 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?Just an idea, try putting a backslash before the non-ASCII characters, perhaps that will force the function to take them literally instead of making who knows what assumption about them. And let me know if it works because we use diacritical marks in Spanish, who know when I might need it. Satyam