in reply to Re: Behavior of /g when there are capture groups (join)in thread Behavior of /g when there are capture groups
Nice succinct way of constructing the two regexes from one source. I think that may do the trick.