If you window name is something like this "Window-1"
The Regular expression can be used only when there is something common like ex: Window-1, win-2, window2-3 etc.,
If you see at the names there is a difference in names of first & last. But common is "-" simbol. So you can use the Regular expression like "!.*-.*".
So that WinRunner will take any first name & extension names followed by.
In same manner just try to find out the name that is common in your window name & use it in same manner.
If you want a high quality software system, you must ensure each of its parts is of high quality. by Watts S. Humphrey