fixes regexpr on testing appId

Jira-issue: WP-1243