Regular Expression - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: Regular Expression (/Thread-Regular-Expression--1334) |
Regular Expression - sudha - 12-03-2008 Hi, can anyone please tell me the regular expression for the code below Code: DelphiWindow("Shell").DelphiTreeView("BISTree").Select "BIS Connections;test;new [38I0]", micRightBtn the value [38I0] is dynamic, i want a regular expression for the same. Note: This is not there in the Object Repository I know that it could be done using descriptive programming. But, since i am new to QTP, i dont know how to proceed. appreciate your help. thanks sudha RE: Regular Expression - Ankur - 12-04-2008 You can parametrize this value. If the value is getting generated at run time. you can always add it dynamically. For ex: Code: var= [3810] RE: Regular Expression - surya_7mar - 12-09-2008 You can use Code: DelphiWindow("Shell").DelphiTreeView("BISTree").Select "BIS Connections;test;new [\d*]", micRightBtn If you have only one oject of that type there RE: Regular Expression - VENKATAREDDY_M - 02-03-2009 Hi you can use below one ^\d{4}$ This will check for only 4 digits. Thanks VENKATA |