Hi,
I have some text like:
some text and more text etc...
<td></td>
<td>JMETER0123</td>
<td>Foo</td>
<td>Bar</td>
<td>Baz</td>
<td>30-May-2008</td>
<td><a href="/project/userdetails.action?userID=42966">View Details</a></td>
<td><input type="checkbox" name="selectedUser" value="42966" /></td></tr></tbody></table><span class="pagebanner">12 items found, displaying all items.</span><span class="pagelinks"><strong>1</strong></span>
more text and more text etc
Wherever I find the text JMETER followed by a numeric value (JMETER[0-9] ), I want to get the very next value of the userID (or the selectedUser value, whichever is easier because it is the same value). So in this case I want the value "42966", without the quotes. I have found posts on the net addressing this exact problem (see http://regexadvice.com/forums/thread/43794.aspx) but for some reason it doesn't do what it says!
I currently have: (?s)JMETER[0-9].*?userID=.+?"
which gives me:
JMETER0123</td>
<td>Foo</td>
<td>Bar</td>
<td>Baz</td>
<td>30-May-2008</td>
<td><a href="/project/userdetails.action?userID=42966">View Details</a></td>
<td><input type="checkbox" name="selectedUser" value="42966"
I also tried the exact example in that post mentioned above and it does the same thing.
I have tested this in The Regex Coach (http://www.weitz.de/regex-coach/) and ultimately want to use this in JMeter's Regular Expression Extractor (http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor).
Can anyone help? That would be great!
Thanks!
-pea