Is there a way to determine if a back-referenced group captured successfully, but WITHOUT trying to match the actual text?
For instance, an email address can be written two ways:
Larry Q. Smith III <email@example.com>
What I'm hoping to do is put an Optional Group around the
"Larry Q. Smith III <" part and another Optional Group around the last character ">".
The problem is that I don't want to capture things like:
Larry Q. Smith III <firstname.lastname@example.org
--- I was hoping for a way to determine if the first group matched successfully, and if that's true, then the last > MUST be there.
I was hoping NOT to use alteration as this can be very expensive with backtracking.
I'd appreciate any help anyone has to offer.