<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Regex Pattern Matching in LoadRunner</title>
	<atom:link href="http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/feed/" rel="self" type="application/rss+xml" />
	<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/</link>
	<description>Performance and Test Automation Experts</description>
	<lastBuildDate>Mon, 09 May 2011 03:51:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: Headwired &#187; Blog Archive &#187; Using Regular Expressions in LoadRunner</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5936</link>
		<dc:creator>Headwired &#187; Blog Archive &#187; Using Regular Expressions in LoadRunner</dc:creator>
		<pubDate>Wed, 10 Feb 2010 12:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5936</guid>
		<description>[...] been identified how to enable Regular Expressions in LoadRunner. A big thanks to Charlie, Tim for getting this working, and Dmitry for proposing the [...]</description>
		<content:encoded><![CDATA[<p>[...] been identified how to enable Regular Expressions in LoadRunner. A big thanks to Charlie, Tim for getting this working, and Dmitry for proposing the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5935</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 21 Aug 2009 02:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5935</guid>
		<description>Hi Satish, check out the lr_decrypt function, this is probably what you are after ...

Cheers,
Tim</description>
		<content:encoded><![CDATA[<p>Hi Satish, check out the lr_decrypt function, this is probably what you are after &#8230;</p>
<p>Cheers,<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satish</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5934</link>
		<dc:creator>Satish</dc:creator>
		<pubDate>Fri, 21 Aug 2009 02:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5934</guid>
		<description>Hi, I want to encrypt the password while passing these parameterized values within the script. I am basically looking to find if we have a similar function in LoadRunner (as we have in QTP, SetSecure (&quot;test123&quot;))?
Appreciate, if anyone can respond.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I want to encrypt the password while passing these parameterized values within the script. I am basically looking to find if we have a similar function in LoadRunner (as we have in QTP, SetSecure (&#8220;test123&#8243;))?<br />
Appreciate, if anyone can respond.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Burke</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5933</link>
		<dc:creator>David Burke</dc:creator>
		<pubDate>Wed, 07 Jan 2009 00:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5933</guid>
		<description>Tim,

I found the pcre files at the following site:

http://gnuwin32.sourceforge.net/packages/pcre.htm</description>
		<content:encoded><![CDATA[<p>Tim,</p>
<p>I found the pcre files at the following site:</p>
<p><a href="http://gnuwin32.sourceforge.net/packages/pcre.htm" rel="nofollow">http://gnuwin32.sourceforge.net/packages/pcre.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5932</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 14 Jul 2008 07:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5932</guid>
		<description>For my own reference, you can also get regex pattern matching with this approach. You need to comment out &lt;code&gt;//#include &lt;/code&gt; in the pcreposix.h header for this to work:

&lt;pre lang=&quot;C&quot; line=&quot;0&quot;&gt;
request_num() {
int  status;
    int  eflag;
    char buf[256];
char out[128];
char *pattern = &quot;requestnum=(\\d+)&#039;&#124;requestnum=(\\d+)&amp;&quot;;
//char *pattern = &quot;sen(\\w+)&#124;s\\wn(\\w+)&quot;;
char *string  = lr_eval_string(&quot;{request_num_buff}&quot;);
    regex_t re;
    regmatch_t pmatch[128];
lr_load_dll(&quot;c:\\pcre\\bin\\pcre3.dll&quot;);

if((status = regcomp(&amp;re, pattern, REG_EXTENDED))!= 0){
regerror(status, &amp;re, buf, 120);
exit(2);
    }

if(status = regexec( &amp;re, string, 10, pmatch, eflag)== 0){
strncpy(out, string + pmatch[1].rm_so, pmatch[1].rm_eo - pmatch[1].rm_so);
        lr_save_string(out, &quot;requestnum&quot;);
lr_output_message(&quot;Notify: Parameter requestnum was found: %s\n&quot;,out);
eflag = REG_NOTBOL;
    }
    regfree(&amp;re);
}
&lt;/pre&gt;

Regards,
Tim Koopmans</description>
		<content:encoded><![CDATA[<p>For my own reference, you can also get regex pattern matching with this approach. You need to comment out <code>//#include </code> in the pcreposix.h header for this to work:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">request_num<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #993333;">int</span>  status<span style="color: #339933;">;</span>
    <span style="color: #993333;">int</span>  eflag<span style="color: #339933;">;</span>
    <span style="color: #993333;">char</span> buf<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">256</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">char</span> out<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">128</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">char</span> <span style="color: #339933;">*</span>pattern <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;requestnum=(\\d+)'|requestnum=(\\d+)&amp;amp;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//char *pattern = &quot;sen(\\w+)|s\\wn(\\w+)&quot;;</span>
<span style="color: #993333;">char</span> <span style="color: #339933;">*</span><span style="color: #993333;">string</span>  <span style="color: #339933;">=</span> lr_eval_string<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;{request_num_buff}&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    regex_t re<span style="color: #339933;">;</span>
    regmatch_t pmatch<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">128</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
lr_load_dll<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;c:\\pcre\<span style="color: #000099; font-weight: bold;">\b</span>in\\pcre3.dll&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>status <span style="color: #339933;">=</span> regcomp<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>re<span style="color: #339933;">,</span> pattern<span style="color: #339933;">,</span> REG_EXTENDED<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
regerror<span style="color: #009900;">&#40;</span>status<span style="color: #339933;">,</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>re<span style="color: #339933;">,</span> buf<span style="color: #339933;">,</span> <span style="color: #0000dd;">120</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
exit<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>status <span style="color: #339933;">=</span> regexec<span style="color: #009900;">&#40;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>re<span style="color: #339933;">,</span> <span style="color: #993333;">string</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">10</span><span style="color: #339933;">,</span> pmatch<span style="color: #339933;">,</span> eflag<span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
strncpy<span style="color: #009900;">&#40;</span>out<span style="color: #339933;">,</span> <span style="color: #993333;">string</span> <span style="color: #339933;">+</span> pmatch<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #202020;">rm_so</span><span style="color: #339933;">,</span> pmatch<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #202020;">rm_eo</span> <span style="color: #339933;">-</span> pmatch<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #202020;">rm_so</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        lr_save_string<span style="color: #009900;">&#40;</span>out<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;requestnum&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
lr_output_message<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Notify: Parameter requestnum was found: %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span>out<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
eflag <span style="color: #339933;">=</span> REG_NOTBOL<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    regfree<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>re<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Regards,<br />
Tim Koopmans</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Motevich</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5931</link>
		<dc:creator>Dmitry Motevich</dc:creator>
		<pubDate>Thu, 01 May 2008 14:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5931</guid>
		<description>Hello, Tim.

I appreciated your efforts on working with Regular Expressions in LoadRunner.

I moved forward Charlie&#039;s and your ideas on LoadRunner RegExps. So, now we can use LR RegExp to match subpatterns and to capture (=to extract) all matched substrings.

The solution is located here:
&lt;a href=&quot;http://motevich.blogspot.com/2008/05/examples-on-loadrunner-regular.html&quot; rel=&quot;nofollow&quot;&gt;Examples on LoadRunner Regular Expressions&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hello, Tim.</p>
<p>I appreciated your efforts on working with Regular Expressions in LoadRunner.</p>
<p>I moved forward Charlie&#8217;s and your ideas on LoadRunner RegExps. So, now we can use LR RegExp to match subpatterns and to capture (=to extract) all matched substrings.</p>
<p>The solution is located here:<br />
<a href="http://motevich.blogspot.com/2008/05/examples-on-loadrunner-regular.html" rel="nofollow">Examples on LoadRunner Regular Expressions</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sameh</title>
		<link>http://altentee.com/blogs/2008/regex-pattern-matching-in-loadrunner/#comment-5930</link>
		<dc:creator>Sameh</dc:creator>
		<pubDate>Thu, 17 Apr 2008 00:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/regex-pattern-matching-in-loadrunner/#comment-5930</guid>
		<description>Thats awesome Koops...</description>
		<content:encoded><![CDATA[<p>Thats awesome Koops&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

