for your current example jsessionid=(.+) In the more general cse you should terminate it by ? Again ensure you have selected headers in the regex
On Thu, Jun 20, 2013 at 4:25 PM, Shashidhar Shivaramaiah < [email protected]> wrote: > I have added debug sampler but nothing it is showing. What would be the > correct syntax for regular expression? > > > On Thu, Jun 20, 2013 at 4:08 PM, Deepak Shetty <[email protected]> wrote: > > > add a debug sampler and view in view results tree - the response tab for > > the debug sampler should have the variables that got set > > Ensure that you have selected Headers in the regex extractor for response > > field to check > > Your regex seems wrong though > > > > > > On Thu, Jun 20, 2013 at 3:53 PM, Shashidhar Shivaramaiah < > > [email protected]> wrote: > > > > > I have a scenario where i'm getting values for a request in the header > > > > > > Response headers: > > > HTTP/1.1 302 Moved Temporarily > > > Server: Apache > > > X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP02 (build: > > > SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)/JBossWeb-2.0 > > > x-wily-info: Clear guid=63C4869C0A07194D00C5AC0C23205359 > > > x-wily-servlet: Clear > > > > > > > > > appServerIp=10.7.25.77&agentName=STG-portal-1&servletName=ControllerServlet&agentHost=vm0109ussac1&agentProcess=JBoss > > > Location: > > > > > > > > > https://test-www.nike.net/portal/site/nike/template.PAGE/;jsessionid=9rU1wzkHOBC7skzvqr9FIg**.node1 > > > > > > I need to use regular expression and i have used regular expression for > > > jsession id > > > > > > jsessionid=([^"]+?) > > > > > > where do i see whether it is capturing or not > > > > > >
