Hi all

 

Following are some of the doubts that we got while using for testing one of our 
applications?

 

1. Is there any way to find out the last Match number of the template of a regular 
expression instead of finding randomly by using 0 or by using some number say N to 
find the Nth Match Number?

 

2. Regular expression was not working proper in the case of the following code of a 
multi selection list box. The code is 

 

<select>

<option value="abc">&lt;abc</option><option value="abc">&lt;abc</option><option 
value="abc">&lt;abc</option></select>

 

The regular expression details I used:

                                      Regular expression: \<option value=\"(.*)\"\>

                                      Template:                 $1$

                                      Match No:                 1

Answer expected:   abc

Answer received: abc">&lt;abc</option><option value="abc">&lt;abc</option><option 
value="abc">&lt;abc</option></select>

 

My doubt here is, did I do any mistake? If there is no mistake, why it is not giving 
only abc?

 

Thanks

Eda



---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Reply via email to