update regex on definition parse