#23219 [Opn->Bgs]: Cannot use symbols as delimiters
| From: | sniper@php.net | Date: | Wed, 23 Apr 2003 08:20:46 +0000 |
| Subject: | #23219 [Opn->Bgs]: Cannot use symbols as delimiters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38143@lists.php.net to get a copy of this message | ||
ID: 23219
Updated by: sniper@php.net
Reported By: lucphp at BrazilianTranslation dot net
-Status: Open
+Status: Bogus
Bug Type: *Regular Expressions
Operating System: Windows 98 SE
PHP Version: 4.3.1
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.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2003-04-14 23:49:43] lucphp at BrazilianTranslation dot net
I have some scripts that use a lot of preg_match and preg_replace. And
I use the ¢ symbol as a delimiter because
I never used that symbol for anything else in my life, so I never have
to worry about escaping it. I would be escaping (and missing) a lot of
occurrences if I had been using / or | . I have used these scripts for
many months, almost a year. I didn't use them in about a month, maybe a
little
more, and I don't remember updating/upgrading PHP during that period.
But my mind could be deceiving me. Maybe the last time I used them was
before I updated PHP to v. 4.3.1. At least I am 100% sure the scripts
and my INI file have not been changed. They should be working.
Now I try to run my old scripts and, in some of them, PHP gives me some
attitude:
Warning: Delimiter must not be alphanumeric or backslash in
C:\WINDOWS\Desktop\conversor-folha.php on line 25
Some scripts work, others don't. What can I do to pinpoint the
problem?
------------------------ 8< ------------------------
$pattern = '¢(Foi encontrado|Foram encontrados) *<b>[0-9]+</b>
*anúncios?.*Clique nos ícones para adicionar os anúncios
à "¢s';
$po = preg_match ($pattern, $x, $matches);
------------------------ >8 ------------------------
Thanks,
Luciano ES
Santos, SP - Brasil
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23219&edit=1