Question: I want to create a test script in QTP which when I execute does 'Right mouse button' operation on any windows folder and select any specified Popupmenu eg. Refresh.

I have added the folder under QTP OR and its reflects the black folder area as 'WinList'.

This is the added OR hierarchy that I added:
Window("abc").WinObject("Items View").WinList("Items View")

So Basically i want to perform RMB Operation over this WinList and select any option under the PopupMenu.

Answer: 
```
 ^([a-zA-Z]{3}t[1|2][a-zA-Z]{2}_([a-zA-Z][0-9]){2})$

```

Just add anchors.
`^` matches the beginning of the line. 
`$` matches the end of the line.

Since you have `$` it will not match strings with extra characters.
Also you can simplify your expression:

```
\b([a-z]{3}t[1|2][a-z]{2}_([a-z][0-9]){2})\b

```

-match operator is case insensitive

Or if you want validate the entire string:

```
\A([a-z]{3}t[1|2][a-z]{2}_([a-z][0-9]){2})\z

```