Use try/catch with other regex definitions