I have created a pop up recovery scenario that will handle a pop up which can be displayed anytime during script execution. I am using its text to recognize which pop up is displayed. Each pop up has a common string with different starting and ending strings. So i have made pop up window's "Window text contains" as regular expression by adding .* at beginning and end of common string. like .*xyz.*

When QTP finds the pop up it is not activating recovery scenario but if i remove regular expressnio and match exact string then it works. Is there something i am missing in this scenario, something wrong with this regular expression .*