test for regexp without captures