rework regExp assertion