RE: Error : Nested quantifiers before HERE mark in regex
- From: Bedantab@xxxxxxxxxxx (Bedanta Bordoloi)
- Date: Tue, 29 Nov 2005 15:12:34 +0530
No, $log_entry[0] holds a string, and we are getting the error as ** is a
part of that string.
Bedanta
-----Original Message-----
From: Xavier Noria [mailto:fxn@xxxxxxxxxxx]
Sent: Tuesday, November 29, 2005 3:08 PM
To: beginners perl
Subject: Re: Error : Nested quantifiers before HERE mark in regex
On Nov 29, 2005, at 10:22, Bedanta Bordoloi, Gurgaon wrote:
> Hi All,
>
> I'm using the following regex in my code with processes a log file
>
> $str =~ s/(^$log_entry[0]\s)//i
>
> But I'm getting the following error on running the script:
>
> Nested quantifiers before HERE mark in regex m/(^img13.** << HERE **
> \s)/
Is $log_entry[0] supposed to be a regexp?
-- fxn
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
<http://learn.perl.org/> <http://learn.perl.org/first-response>
.
- Follow-Ups:
- Re: Error : Nested quantifiers before HERE mark in regex
- From: Xavier Noria
- Re: Error : Nested quantifiers before HERE mark in regex
- Prev by Date: Re: Error : Nested quantifiers before HERE mark in regex
- Next by Date: Re: help about regex matching
- Previous by thread: Re: Error : Nested quantifiers before HERE mark in regex
- Next by thread: Re: Error : Nested quantifiers before HERE mark in regex
- Index(es):
Relevant Pages
|
|