You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Durgs <du...@gmail.com> on 2006/05/09 18:36:16 UTC

Regexpression in a table data

Hi,
I have a html table 
<td><button onclick="javascript:if (confirm('Are you sure you want to delete the
Application Type'))
{window.location='?target=AppType&Type=AT&SearchStr=&
Action=del&ID=10'}">Delete</button></td>

I want to extract the value 10 in &Action=del&ID=10 from the above line.

How can I get this..
my settings is 
refname
window.location='?target=AppType&Type=AT&SearchStr=&Action=del&ID="(\d+)"
$1$
1
but its not working
pls help



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


Re: Regexpression in a table data

Posted by sebb <se...@gmail.com>.
On 09/05/06, Durgs <du...@gmail.com> wrote:
> Hi,
> I have a html table
> <td><button onclick="javascript:if (confirm('Are you sure you want to delete the
> Application Type'))
> {window.location='?target=AppType&Type=AT&SearchStr=&
> Action=del&ID=10'}">Delete</button></td>
>
> I want to extract the value 10 in &Action=del&ID=10 from the above line.
>
> How can I get this..
> my settings is
> refname
> window.location='?target=AppType&Type=AT&SearchStr=&Action=del&ID="(\d+)"
> $1$
> 1
> but its not working

Try escaping the "?" - ? is a special character

window.location='\? etc

The original text is &ID=10 not &ID="10"
so try removing the " in ID="(\d+)"

i.e. use

ID=(\d+)

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