tweaked regex to remove resetting requirement