Re: Error : Nested quantifiers before HERE mark in regex



Bedanta Bordoloi, Gurgaon wrote:
> Hi All,

Hello,

> 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)/
>
> Can the regex be written in some other way? Please help.

$str =~ s/(^\Q$log_entry[0]\E\s)//i



John
--
use Perl;
program
fulfillment
.



Relevant Pages

  • RE: Error : Nested quantifiers before HERE mark in regex
    ... To: Perl Beginners ... Subject: Re: Error: Nested quantifiers before HERE mark in regex ... Bedanta Bordoloi, Gurgaon wrote: ...
    (perl.beginners)
  • [MSH] Use cast or ToString()?
    ... While parsing through a log file and extracting dates from a regex ...
    (microsoft.public.windows.server.scripting)
  • Re: question about text operation using regex.
    ... question about text operation using regex. ... Newsgroups: perl.beginners ... i have a txt log file and i want to delete the 9th character of each line. ... This assigns the empty dtring to the 9th position of the string, effectively eliminating the 9th character. ...
    (perl.beginners)
  • Re: question about text operation using regex.
    ... Newsgroups: perl.beginners ... i have a txt log file and i want to delete the 9th character of each line. ... This assigns the empty dtring to the 9th position of the string, effectively eliminating the 9th character. ... You may use either of the two solutions, (substr or regex). ...
    (perl.beginners)
  • Error : Nested quantifiers before HERE mark in regex
    ... I'm using the following regex in my code with processes a log file ... But I'm getting the following error on running the script: ... Prev by Date: ...
    (perl.beginners)