Micro Focus QTP (UFT) Forums
Regular Expression for Bank A/C No - 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 for Bank A/C No (/Thread-Regular-Expression-for-Bank-A-C-No)



Regular Expression for Bank A/C No - Akhila - 01-31-2008

Hi Ankur,

In the following script Bank A/C No keeps changing for each iteration.
I created regular expression for A/C as
1) DC[0-9]{1,}\,[0]{3}\.00 but its not working can you please mention the correct expression.
2) Do I need to close the whole expression by () when its in a sentence?
<<<<<
Code:
Browser("xxxxxxxxxxxxx").Page("Card Search Report").WebElement("Company Account DetailsNew").Check CheckPoint("Company Account DetailsNew Virtual Card Sean KellyDC0000001191001525,000.00ActiveSarena JonesSarena JonesDC0000001191001545,000.00")
>>>>

Thanks,
Akhila


RE: Regular Expression for Bank A/C No - Ankur - 01-31-2008

Have you modified the expression in your object identification settings?


RE: Regular Expression for Bank A/C No - Akhila - 02-05-2008

Ankur,
I have modified in Object Repository and checked the option 'Regular expression'.


RE: Regular Expression for Bank A/C No - Akhila - 02-11-2008

The Regular Expression which I mentioned in the post#1 is correct?? if not please guide me.

Thanks


RE: Regular Expression for Bank A/C No - Ankur - 02-11-2008

You can use this tool to check your regular expressions

http://www.nvcc.edu/home/drodgers/ceu/resources/test_regexp.asp


RE: Regular Expression for Bank A/C No - newqtp - 02-12-2008

Hi Akhila,
I've tried your Regular Expression but it was not working so i've tried DC0{6,}[0-9] it worked.When i used \, or \. it was failing.i've tried multiple combination.This one is working for your bank acc.Let me know if you come up with somthing else.

Cheers!!


RE: Regular Expression for Bank A/C No - Akhila - 03-20-2008

Hi,

Sorry for the late reply today only I checked it...

Yes, when I used my regular expression its failed. With the below regular expression script run was successfuyl.
DC0{1,}[0-9]{1,},0{3}\.00 -----for---- "DC0000001191001545,000.00"
But this expression is false when I checked with the online tool suggested by Ankur.
Still I am not sure with the new expression whether its correct not.
Here I have one more doubt about using regular expression [0-9]{1,}, ---for----1191001545, (it is a part of A/C No)
Can anyone help?

Thanks..