Highlighted
CarlF Absent Member.
Absent Member.
447 views

Regular expression formation

Hello there!

I have tried to build a reg expression so to build a test that can read multiple scenarios (rows) but have not been succesful. Examples below. The inner part between LMS - <loan number> - Loan is the one changing.

Any assistance is appreciated.

LMS - 10-0025-T00 - Loan

 LMS - 178-T91 - Loan

 LMS - 1603235 - Loan

 

Regards,
Charles F

Tags (1)
0 Likes
2 Replies
Shuaib Regular Contributor.
Regular Contributor.

Re: Regular expression formation

Hi Carl

Is that by any chance a Window Name when busy in different loan applications, something like a policy number? Can you maybe attach that part of your script please.

Thanks

 

0 Likes
pratap1863 Absent Member.
Absent Member.

Re: Regular expression formation

Hello there!

You can use

LMS - [0-9a-zA-Z].* - Loan

OR

LMS - .* - Loan

If you know the what all the combinations it can have (like 1 to 3 phrases with digits or alpha numeric with a - seperated) please provide so we can design the appropriate regular expression.

 

Thanks

Pratap

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.