Same regular expression for app name error messsage and selection.

Previously two subtly different expressions were used, allowing
com.example.app-name to pass the error message check but to fail
when the application name was to be extracted and used.