update regex for QC script