Support regex in stripping comments from test cases.