Fw: [PHP-DEV] Bug #1430: Regular expression with international locale.
| From: | Brian Moon | Date: | Mon, 01 May 2000 18:26:49 +0000 |
| Subject: | Fw: [PHP-DEV] Bug #1430: Regular expression with international locale. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18325@lists.php.net to get a copy of this message | ||
Was there ever any solution found for this? I am having this problem on
FreeBSD 3.1 and am using the bundled regex lib. On Windows and Linux I do
not have this problem.
Brian Moon
-------------------------------------------------------------------------
Phorum Dev Team - http://phorum.org
Making better forums with PHP
-------------------------------------------------------------------------
> 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
>
>