Tricky using regexes - not sure if it is possible. However. if all the values are known in advance, there are other approaches you could use: - StringFromFile function, reading from randomised input file(s)
If the number of options is fixed for each access to the page: - random controller, with one child for each possible option value - ditto, but each child could fetch the nth OPTION using a regex - that might be easier to code than extracting the Nth option where N is randomly chosen. -- The opinions expressed herein are my own, and are not necessarily endorsed by my employer ... -----Original Message----- From: Jonathan Kwadzo [mailto:[EMAIL PROTECTED] Sent: 27 May 2003 14:34 To: [EMAIL PROTECTED] Subject: Regex Function Hello, I have a code like the following in my html page: <SELECT name="firstSelect"> <OPTION value="12345">12345</OPTION> <OPTION value="23456">23456</OPTION> .... <OPTION value="34567">34567</OPTION> <SELECT> <SELECT name="secondSelect"> <OPTION value="12345">12345</OPTION> <OPTION value="23456">23456</OPTION> .... <OPTION value="34567">34567</OPTION> <SELECT> I'm trying to write a regiular expression to randomly retrieve one of the values of the firstSelect. Has anybody done this before? Any help will be gretly appreciated. Thanks! Jonathan Kwadzo Rona Inc. - Dév. Technique / Technical Dev. 220, Chemin du Tremblay Boucherville (Québec) J4B 8H7 Tel : 514 599 5900 ext. 5360 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]