quick regex test to guard against costly compile step