i'am looking for an regular expression for matching object with differents string. My reference object is a string. I have two descriptions properties for this object:
Text and regexpwndtitle
I want to match:
Text: Test connection failed.
regexpwndtitle: Test connection failed.
Test connection failed.
an unnamed file contains an incorrect schema.
i have already try to actived and used regular expression with qtp for text and regexpwndtitle but they didn't work.
Text: Test connection failed..*
regexpwndtitle: Test connection failed..*
The .* in your regular expression means: "Any number, including zero, of any character or blank space except a carriage return or line feed character".
Your original post seems to indicate that there might be a line feed in the text you're trying to match. If so, you cannot match it with any regex by simply using .*
No represent a line feed you usually use /n so we will build a character set tht includes both the . and the /n in a single set, followed by the * so we can have zero or more occurrences of that character set.