in reply to Re: using split delimiters
in thread using split delimiters

You may want to do it with something like /begin(?:block)?/ - note the question mark quantifier, or maybe in case of a backreference. I know I've needed this once or twice; it's not terribly common however.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Re: using split delimiters
by Molt (Chaplain) on May 24, 2002 at 10:56 UTC

    If you needed it for a backreference though you'd use normal ( ) braces instead of the (?: ) braces seen here which are specifically intended not to store their results.

      Sorry, you are right of course.

      Makeshifts last the longest.