If you're still having a problem with capturing and printing matches the way you want, you should post a minimal, self-contained example consisting of:
In reply to Re^3: Comparing pattern
by graff
in thread Comparing pattern
by mrc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |