Remove warning for regexp