Micro Focus QTP (UFT) Forums

Full Version: Regular Exp Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear Experts.
Please help out ,
I would like to do Regular Exp for the below line in SAP ,

Code:
SAPGuiSession("Session").SAPGuiWindow("Document Flow").SAPGuiTree("TableTreeControl").SelectItem "GT-BP CRM Complaint 0065000430 / 1010;GT-Credit Memo Reque 0060000120 / 1010","GT-Credit Memo Reque 0060000120 / 1010"

But the numbers mentioned in above line
1.0065000430 / 1010
2.0060000120 / 1010
3.0060000120 / 1010

will change so I want to do it in Regular Expressions. Can you please help me to do Reg Exp.
You can try the below code.

Code:
SAPGuiSession("Session").SAPGuiWindow("Document Flow").SAPGuiTree("TableTreeControl").SelectItem "RegExp:=GT-BP CRM Complaint .*;RegExp:=GT-Credit Memo Reque.*","RedExp:=GT-Credit Memo Reque.*"

OR

SAPGuiSession("Session").SAPGuiWindow("Document Flow").SAPGuiTree("TableTreeControl").SelectItem "RegExp:=GT-BP CRM Complaint .*;RegExp:=GT-Credit Memo Reque.*","#1"


Modify the code if required.

Regards,
Ankesh
Thanks Ankesh ,
It should work because the same logic appilied one of my senior in earlier project but I forgot this how to use regulaer exp here so I posted here ...after seen your code , I got it -Thanks