slight fix to regex iterator (first argument) in getEqnForm()