in reply to Re: Regexp
in thread regexp problem using custom markup

If there are no parentheses, it returns a list of all the matched strings, as if there were parentheses around the whole pattern. -- perlop / Regexp Quote-Like Operators

-Anomo

Replies are listed 'Best First'.
Re: Re: Re: Regexp
by mkmcconn (Chaplain) on Jul 25, 2002 at 21:36 UTC

    Thank you Anomo - you are right. Without the /g operator it will return '1'; but, it will capture just fine using the operator: something that frankly I have never used or noticed.
    Thanks again.
    mkmcconn