#32314 [Opn->Bgs]: Regular Expression
| From: | derick@php.net | Date: | Tue, 15 Mar 2005 11:43:13 +0000 |
| Subject: | #32314 [Opn->Bgs]: Regular Expression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75371@lists.php.net to get a copy of this message | ||
ID: 32314
Updated by: derick@php.net
Reported By: ostap333 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: WindowsXP
PHP Version: 5.0.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Even if you think it is not a bug, we often know better than you,
please consult the support channels first before even considering
to reopen this report.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2005-03-15 12:11:45] ostap333 at hotmail dot com
Description:
------------
Hi
I was parsing the FreeDB and fouund that lots of regular expression
combinations are not working as they would in perl.
Here is one example:
Reproduce code:
---------------
$word='µÚ 1 Òô¹ì';
if (preg_match('/^(\D+?) +?(\d{1,}) +?(\D+?)$/',$word,$match))
{
print "$match[1]\n$match[2]\n$match[2]\n";
};
//If i remove the '^' and '$' - it works
//But than expression is not exactly what i want coz it
//begins to match other stuff in different strings.
Expected result:
----------------
µÚ
1
Òô¹ì
Actual result:
--------------
nono..nothing niks
given code works perfectly in perl
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32314&edit=1