0

Following the Response data for a request.

<li><a href="xyzw.do?ab=1111111111110&amp;method=abcde&amp;maintab=D&_UID_=111Y-T00O-U00U-PCDE-ZA7C-QQ99-0I00-0550" target="_top">
                    Letter</a>

Following is my regex extractor values

reference name : val
regular expression : <li><a href="abcde.do?ab=(.+?)
Template : $1$
match : -1
default value : error

I want the value of ab to be extracted. In this case 1111111111110

I tried the following:

  1. Changed (.+?) to (.+), (\d+) etc.
  2. Changed -1 as 0

Above attempts doesn't give any fruitful output. I always see 'error' assigned to 'val'

Additional info: There are several <li></li> blocks like this, but there is only one <li></li> block that has xyzw.do in it.

Ardesco
  • 7,281
  • 26
  • 49
sofs1
  • 3,834
  • 11
  • 51
  • 89
  • I want the value 1111111111110 to be extracted. This value changes for each user. – sofs1 Mar 23 '15 at 21:47
  • can you give another example ? will there be `?ab=` always before the value you want to extract ? – apgp88 Mar 23 '15 at 21:48
  • Sure.
  • Letter Yes. Always there will be ?ab= before the value I wanna extract.
  • – sofs1 Mar 23 '15 at 21:52