in reply to reg ex. problem - 2 variables

A couple of suggestions: