minor regex improvement