Safer regexp for test