Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression for a List Value
#5
Solved: 12 Years, 10 Months, 2 Weeks ago
Thanks for your further assistance Kavita, it's greatly appreciated. I think your proposed soloution would be like the loop I did think of, but I would like to avoid this as a solution if possible, as it seems to be very crude to go through mulitple values looking for one that matches.

I guess if you haven't worked with .net objects, the simplest way to consider this is - think of a drop down menu with a list of data items. All items are say fruit names, eg. Banana, Apple, Grapes etc. But for each item, their is also a number in brackets which represents the amount available, so your list could be "Apple (3)", "Banana (17)", "Grapes (1)". This is the list currently, but tomorrow, the values in brackets could be something else, i.e. go up or down or be the same. So I need to code to select say "Apple" and ignore whatever the number is - hence the regular expression route for this solution.

I understand regular expression for the objects, but I am trying to make it regular for the data items which I don't even know if it is possible being a data driven application.
Reply


Messages In This Thread
Regular Expression for a List Value - by Reaper - 10-12-2010, 03:17 PM
RE: Regular Expression for a List Value - by Reaper - 10-12-2010, 05:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,992 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,724 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 4,319 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 17,008 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,409 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)