rogfer01 added a comment. Can you coalesce them in a single regular expression, like `/;\s*CHECK-(NEXT|NOT|DAG|SAME|LABEL):` (not sure if this is the right syntax but I hope you got the idea. https://reviews.llvm.org/D43289