fixes regexpr on testing appId

Jira-issue: WP-1243
Merge pull request #46 from mlasak/WP-1243

fixes regexpr on testing appId