Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression for Bank A/C No
#1
Not Solved
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
Reply
#2
Not Solved
Have you modified the expression in your object identification settings?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
Ankur,
I have modified in Object Repository and checked the option 'Regular expression'.
Reply
#4
Not Solved
The Regular Expression which I mentioned in the post#1 is correct?? if not please guide me.

Thanks
Reply
#5
Not Solved
You can use this tool to check your regular expressions

http://www.nvcc.edu/home/drodgers/ceu/re...regexp.asp
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#6
Not Solved
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!!
Reply
#7
Not Solved
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..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,484 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,351 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,817 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,564 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,114 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)