in reply to Re: Subroutines in a regex?
in thread Subroutines in a regex?

Sorry to disagree, but you don't have to put parenthesis around the whole pattern, it will be substituted anyway.