Bug #1430: Regular expression with international locale.
| From: | haktan at cybercity dot dk | Date: | Thu, 20 May 1999 14:51:40 +0000 |
| Subject: | Bug #1430: Regular expression with international locale. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5810@lists.php.net to get a copy of this message | ||
From: haktan@cybercity.dk
Operating system: FreeBSD
PHP version: 3.0.6
PHP Bug Type: Misbehaving function
Bug description: Regular expression with international locale.
It seems to me, that regular expression doesn't work with international character-set. When the
regexpr-compiler sees an non-english character it simply stops processing the remaining string.
For example:
$foo = ereg("([0-9]+):([a-zA-ZÆØÅæøå]*):([0-9]+)", "0:æøåAbcb:10",
$out);
Doesn't process the regular expression correctly.
I have tried to do a set_locale("da_DK...").
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net