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.
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.

