Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expressions
#1
Not Solved
Hi,
i have a situation described below

i have an object webelement
inner text="loanno 1234 green"
the number 1234 is not constant as it changes for every time i log in.

i want to regularise the inner text so that i can uniquely identify the object.

there are many object with inner text as loanno.

i want to regularise only the number 1234.

how do i do it ?
Reply
#2
Not Solved
Hi,
Tyr this:
loanno\d{n}green
where n is length of numeric string

Regards,
Sankalp
Reply
#3
Not Solved
you can try

^loanno [0-9]+ green$

Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Regular Expressions Charanpreet 1 2,289 04-25-2011, 06:56 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)