On Sat, Aug 03, 2002 at 05:03:36PM +0100, Phil Ewington wrote:
> Hi,
>
> I am am writing a function to color code and indent JavaScript source using
> regular expressions and cannot seem to get back referencing working.
What you're using isn't "back referencing," it's utilizing "substrings."
B
on" <[EMAIL PROTECTED]>
To: "Danny Shepherd" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 8:54 PM
Subject: RE: [PHP] RegEx (back referencing)
> Danny,
>
> OK, the input string is the contents of a file, the idea is to output
color
> coded and indented code
TECTED]>
Sent: Saturday, August 03, 2002 6:23 PM
Subject: RE: [PHP] RegEx (back referencing)
> Danny,
>
> It still doesn't work, could this be a problem in 4.0.4pl1 ??
>
>
>
> > -Original Message-
> > From: Danny Shepherd [mailto:[EMAIL PROTECTED
Danny,
It still doesn't work, could this be a problem in 4.0.4pl1 ??
> -Original Message-
> From: Danny Shepherd [mailto:[EMAIL PROTECTED]]
> Sent: 03 August 2002 18:11
> To: [EMAIL PROTECTED]; PHP-General
> Subject: Re: [PHP] RegEx (back referencing)
>
>
What's strange is that doing an ord($string) returns 171, which is a '1/2'
char. So why does PHP convert the pattern match??
> -Original Message-
> From: Phil Ewington [mailto:[EMAIL PROTECTED]]
> Sent: 03 August 2002 17:04
> To: PHP General
> Subject:
start.
Danny.
- Original Message -
From: "Phil Ewington" <[EMAIL PROTECTED]>
To: "Danny Shepherd" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 5:52 PM
Subject: RE: [PHP] RegEx (back referencing)
> \\1 outputs nothing at all wrapped in fo
try
\\1
- Original Message -
From: "Phil Ewington" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 5:03 PM
Subject: [PHP] RegEx (back referencing)
> Hi,
>
> I am am writing a function to color code and
Hi,
I am am writing a function to color code and indent JavaScript source using
regular expressions and cannot seem to get back referencing working. The
pattern match is successful but the output is a single unrecognised
character (a square).
$string = eregi_replace("<(/?)(scr[^>]*)>", "«font co
8 matches
Mail list logo