Highlighted
Absent Member.. Absent Member..
Absent Member..
87 views

Regular Expression

Jump to solution

Some reason I am confused\forgot how to do the regular expression for the following QTP object in OR.

 

Here is the value of the name property

 

isc_01Zisc_ToolstripButton

 

Middle section(01Z) is changing.  How to replace this one.  It can be either number or lower or upper case alphabet in any of the three digits.  Here are few possible vlaues.

 

20Z

0aZ

Zac

 

Please help me out.

 

Thank You

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.. Absent Member..
Absent Member..

Here is the code I used inorder to solve this proble.

 

isc_01Zisc_ToolstripButton

 

isc_/w{3]isc_ToolstripButton

 

By doing this you are telling QTP for any three characters.

 

Thank you guys for all your responses.

 

 

View solution in original post

0 Likes
3 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

 

how about this  (isc_).*

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Just use ".*" for the section of the text which is dynamic.

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Here is the code I used inorder to solve this proble.

 

isc_01Zisc_ToolstripButton

 

isc_/w{3]isc_ToolstripButton

 

By doing this you are telling QTP for any three characters.

 

Thank you guys for all your responses.

 

 

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.