You can use 'ExitTest' to stop the script if any condition fails as per your requirement.
The query does not have any concern with the Regular Expression, Thread has been moved to QTP Beginners.
The query does not have any concern with the Regular Expression, Thread has been moved to QTP Beginners.

