improved regex generation