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-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > -- Ronan Klyne Business Collaborator Developer Tel: +44 01189 028518 ronan.kl...@groupbc.com www.groupbc.com --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org