How about
((?:\s+[^>]*)?)\s+ # Optional assorted crud
? The capturing () is not marked with ? (or *) so it won't be undef, but the non-capturing (?:) is marked with ?, so it can fail to match: in that case the () saves an empty string, not undef.
--In reply to Re: Re: Re: Using undefined back-references?
by fruiture
in thread Using undefined back-references?
by tommyw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |