Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular expression for this string
#1
Not Solved
hello every one,

i'm kinda new to the regular expressions concept, and i've to create a regular expression for a dynamically generated string which has following format...

abc11_a_a_a11a1234_abcd_4ab5_a1ab_a1234b5c6d7e_AbcdefgHijklmnopqr12_AbcdefgHigklmnopqr12_ABCdef

i need help in two ways for this one.

  1. 1: what could be the regular expression for this full string?
  2. 2: can i just create regular expression for this part (abc11_a_a_a11a1234_abcd_4ab5_a1ab_a1234b5c6d7e_) and just append the rest of the string as it is, would it still work, because only the part in () is dynamically generated, rest is pretty much static...
Reply
#2
Not Solved
Hi Kinda,

If you no need to valideate anything with in the () which is (abc11_a_a_a11a1234_abcd_4ab5_a1ab_a1234b5c6d7e_) you can very well use below regular experssion to identify

RegEx: (.*)AbcdefgHijklmnopqr12_AbcdefgHigklmnopqr12_ABCdef
Reply
#3
Not Solved
so i'd be using this regex. like this ?

Code:
TestObj("innertext").value = .*AbcdefgHijklmnopqr12_AbcdefgHigklmnopqr12_ABCdef


???
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,816 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,113 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)