RE: Error : Nested quantifiers before HERE mark in regex



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>

.



Relevant Pages

  • Re: regex help
    ... > I'm trying to do basic regex tasks within tcsh. ... > indicated that after shell processing the backslashes would be ... > Thanks, Mark ...
    (comp.unix.shell)
  • Quantifier...bigger than 32766...in regex
    ... Quantifier in bigger than 32766 before HERE mark in regex m/^.{ ... It appears from the archives of this gruop that this is unavoidable - ...
    (comp.lang.perl.misc)
  • Re: Quantifier...bigger than 32766...in regex
    ... Quantifier in bigger than 32766 before HERE mark in regex ... use strict; ... use warnings; ...
    (comp.lang.perl.misc)
  • RE: Is it possible with RegEx
    ... I know you had in mind one regex, ... To: 'beginners perl' ... Subject: RE: Is it possible with RegEx ... Prev by Date: ...
    (perl.beginners)