jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronan Klyne <ronan.kl...@groupbc.com>
Subject Re: Struggel with regular expression
Date Fri, 20 Feb 2009 11:02:11 GMT
Peter Peterse wrote:
> Hello List,
> 
> I'am struggeling with regular expressions
> 
> In the code below I want to find:
> the number 6901 out of the string: setCurrentRegion(\'6901\', 1)
> 
> Can someone help me with it?

Sure, try this expression:
setCurrentRegion\(\\'(\d+)\\', 1\)

And the template:
$1$

Hope that helps,

	Ronan

> Thanks anyway,
> 
> Peter.
> 
> ======== code =========
> <tr onmouseout="this.className = 'lst_item';" onmouseover="this.className
> = 'lst_item_over';" class="lst_item">
> <td id="cell_1_1" class="table-even"><script>
> 																		document.write(getButton('img/icons/edit.gif', '',
> 'setCurrentRegion(\'6901\', 1)',  28, 'Wijzig regio'));
> 
> 																	</script></td><td style="color: black;" id="cell_1_2"
> class="table-even">00</td><td style="color: black;"
> id="cell_1_3" class="table-even">Landelijk</td><td
> style="color: black;" id="cell_1_4" class="table-even"><a
> title="Toon gebruikers in deze regio"
> href="javascript:goto_regionUsers('6901');">gebruikers</a></td>
> </tr>
> <tr onmouseout="this.className = 'lst_item';" onmouseover="this.className
> = 'lst_item_over';" class="lst_item">
> <td id="cell_2_1" class="table-odd"><script>
> 																		document.write(getButton('img/icons/edit.gif', '',
> 'setCurrentRegion(\'264201\', 2)',  28, 'Wijzig
> regio'));
> 
> 																	</script></td><td style="color: black;" id="cell_2_2"
> class="table-odd">01</td><td style="color: black;"
> id="cell_2_3" class="table-odd">Haarlem</td><td
> style="color: black;" id="cell_2_4" class="table-odd"><a
> title="Toon gebruikers in deze regio"
> href="javascript:goto_regionUsers('264201');">gebruikers</a></td>
> </tr>
> ======== code =========
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 


-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan.klyne@groupbc.com
www.groupbc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message