Micro Focus QTP (UFT) Forums

Full Version: Qtp select item using regex
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am studying qtp, I have a list field and I want select an item form that. For that I am using the following code and it's was generate using record option in qtp. now the system using Select "123" for selecting. Instead of 123 I want ^1\d\d

Actual codeĀ 

Code:
VbWindow("frmMDI").VbWindow("frmcheckIn").VbComboBox("cboRoomNo").Select "123"

I am tried the following code but it's not working

Code:
VbWindow("frmMDI").VbWindow("frmcheckIn").VbComboBox("cboRoomNo").Select ("^1\d\d")

--
Thanks
nivi