check result of regexp are properly