Cameron B. Prince schreef:
Hello,
I¹ve run into a problem with a regex and need help determining if this is my
mistake or a bug. The regex is for inserting a SID into every link in the
buffer before it¹s flushed, but only when each link doesn¹t already have a
SID.
1. you really shouldn't be st
;
> -Original Message-
> From: Cameron B. Prince [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2008 12:56 AM
> To: php-general@lists.php.net
> Subject: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?
>
> Hello,
>
> I¹ve run into a problem with a regex and
Ashley Sheridan a écrit :
Hi Cameron,
As far as I can tell, you have an error in your syntax. You're using a -
(hyphen) character in the first match, but Regex uses this to define a
range of characters.
That's not valuable if hyphen is the last character of the range set.
--
Mickaël Wolf
gust 18, 2008 12:56 AM
To: php-general@lists.php.net
Subject: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?
Hello,
I¹ve run into a problem with a regex and need help determining if this is my
mistake or a bug. The regex is for inserting a SID into every link in the
buffer before it¹s fl
Hi Ash,
> As far as I can tell, you have an error in your syntax. You're using a -
> (hyphen) character in the first match, but Regex uses this to define a
> range of characters. It seems that if you don't escape it, the whole
> thing behaves a little strangely. For example, using your URL as the
Hi Cameron,
As far as I can tell, you have an error in your syntax. You're using a -
(hyphen) character in the first match, but Regex uses this to define a
range of characters. It seems that if you don't escape it, the whole
thing behaves a little strangely. For example, using your URL as the
sour
Hello,
I¹ve run into a problem with a regex and need help determining if this is my
mistake or a bug. The regex is for inserting a SID into every link in the
buffer before it¹s flushed, but only when each link doesn¹t already have a
SID.
An example of the code is here:
$buffer =
preg_replace('/
7 matches
Mail list logo