<?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">
    <channel>
        <title>regex — Sahi Pro Community</title>
        <link>https://community.sahipro.com/forums/</link>
        <pubDate>Thu, 23 Apr 2026 16:53:31 +0000</pubDate>
        <language>en</language>
            <description>regex — Sahi Pro Community</description>
    <atom:link href="https://community.sahipro.com/forums/discussions/tagged/regex/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>dynamic regular expression in _link</title>
        <link>https://community.sahipro.com/forums/discussion/1091/dynamic-regular-expression-in-link</link>
        <pubDate>Mon, 20 Jul 2009 06:05:07 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>robyrobot</dc:creator>
        <guid isPermaLink="false">1091@/forums/discussions</guid>
        <description><![CDATA[Hi All,<br />
<br />
I need to test if a page contains a link that match some regular expression builded by external data es:<br />

<pre><code>var $username = &quot;docente0001&quot;; // I got &quot;username0001&quot; from a query to a excell file
_assertExisits(_link(/$username/, &quot;is not a &quot; + $username + &quot;home page!&quot;);
</code></pre>
<br />
When I run my test the assert always fails on a page that contains a link similar to this:<br />
<br />
&lt;a id=&quot;mylink&quot;&gt;Wellcome docente0001 in your home page&lt;/a&gt;<br />
<br />
I need a regular expression because text inside link could change<br />
<br />
Any ideas ?<br />
<br />
Cheers<br />
<br />
Roby]]>
        </description>
    </item>
   </channel>
</rss>
