in reply to Re: multi-line regexp
in thread multi-line regexp

And i think in this case, there is no difference between :

my @a = $str =~ /(aaaaa.*?)(?=aaaaa|$)/gs ;

and

my @a = $str =~ /aaaaa.*?(?=aaaaa|$)/gs ;
right ?

Replies are listed 'Best First'.
Re^3: multi-line regexp
by GrandFather (Saint) on Dec 21, 2005 at 21:07 UTC

    Interesting. Yes you are right and I've learned something. Thank you :)


    DWIM is Perl's answer to Gödel
      As far as I know lookarounds neither "eat" up any charakters nor do they save anything so it would just make sure to break the search, save its content in one cell of the array and go ahead because of global search.