[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Regular Expression Problem... (5.005 related)



on 9/8/00 9:29 AM, Andrew O. Mellinger at andrew@criticalpath.com wrote:

>> At 8:58 -0700 2000.09.08, Andrew O. Mellinger wrote:
>>> Does anyone have any info on when the 5.005 update will be released?
>> 
>> For MacPerl?  Never.  MacPerl 5.6 is in development.
> 
> Hmm.  Okay, I've got a script that does
> 
> $value =~ s+(?<!<)(http://[\S]*)+<a href=\"$1\">$1</a>+g;
> 
> but it doesn't compile under 5.004 it gets a:
> 
> Sequence (?<...) not recognized.
> 
> I was told that the "It's zero-width look-behind sequence."   I
> seem to be having trouble finding info in my Regular Expressions book
> or Perl books.  What does this mean?

Perhaps you want "(?:<!<)" ?  I believe that's what you use if you want a
paren grouping that doesn't populate a backreference variable.

But where are you getting links that look like "<!<http://..." ?

Or maybe I'm totally off base.

-Andrew


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org