pattern.match with regex not working
<pre><code>import re

def test(stest):
    pattern = re.compile(r'/product\/(.*?)/i')

    result = pattern.match(stest)
    if result:
       print result.group()
    else:
       print "Doesn't match"

test('product/WKSGGPC104/GGPC-The-Paladin')
</code></pre>

<p>When I run the coding as the above, I will get "Doesn't match" for the result instead of 'product/'.</p>

<p>Could someone help me out? I have tested regular expression by using the online tool, it shows fine and matches the string that I am going to test. </p>

<p>Thank you for your help.</p>