You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by GautamPr <ga...@gmail.com> on 2010/05/26 17:15:38 UTC
Extracting a part of string using RegEx.
I have a string as follows
<TD CLASS="datatable-href-cell">
javascript:formsubmit('eds_open_generic_open_link?item_handle_param=MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E')
HTCT105231,83,C,1 </TD>
I would like to extract the text
MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E
using Regular expression extractor.
I have tried (MTI(.+\w)\'), which gives
MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E'
but i dont want to have ' how do i do it.
--
View this message in context: http://old.nabble.com/Extracting-a-part-of-string-using-RegEx.-tp28682203p28682203.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Extracting a part of string using RegEx.
Posted by sebb <se...@gmail.com>.
Or:
item_handle_param=([^']+)'
[^'] means anything except ' (which is the terminator here)
On 26/05/2010, Evandro Grezeli <gr...@gmail.com> wrote:
> try using this one:
>
> item_handle_param=(.+?)'
>
> On Wed, May 26, 2010 at 12:15 PM, GautamPr <ga...@gmail.com>wrote:
>
>
> >
> > I have a string as follows
> >
> > <TD CLASS="datatable-href-cell">
> >
> > javascript:formsubmit('eds_open_generic_open_link?item_handle_param=MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E')
> > HTCT105231,83,C,1 </TD>
> >
> > I would like to extract the text
> >
> > MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E
> > using Regular expression extractor.
> >
> > I have tried (MTI(.+\w)\'), which gives
> >
> > MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E'
> > but i dont want to have ' how do i do it.
> > --
> > View this message in context:
> > http://old.nabble.com/Extracting-a-part-of-string-using-RegEx.-tp28682203p28682203.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
>
> --
> Atenciosamente
> Regards
> Evandro Grezeli de B. Neves
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Extracting a part of string using RegEx.
Posted by Evandro Grezeli <gr...@gmail.com>.
try using this one:
item_handle_param=(.+?)'
On Wed, May 26, 2010 at 12:15 PM, GautamPr <ga...@gmail.com>wrote:
>
> I have a string as follows
>
> <TD CLASS="datatable-href-cell">
>
> javascript:formsubmit('eds_open_generic_open_link?item_handle_param=MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E')
> HTCT105231,83,C,1 </TD>
>
> I would like to extract the text
>
> MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E
> using Regular expression extractor.
>
> I have tried (MTI(.+\w)\'), which gives
>
> MTIObjectHandle-0002-1%7ER%7EigDloIcCH-BadadmDB---aCT%7ET2StrDoc%7ECORPDB%7E%7E'
> but i dont want to have ' how do i do it.
> --
> View this message in context:
> http://old.nabble.com/Extracting-a-part-of-string-using-RegEx.-tp28682203p28682203.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
--
Atenciosamente
Regards
Evandro Grezeli de B. Neves