Replacing periods (".") in a string
<p>I have a string of the type <code>../sometext/someothertext</code>, and I'm trying to replace the <code>..</code> in the string with the name of a website <code>http://www.website.com</code>.</p>

<p>In Python, what I've done is like so :</p>

<pre><code>strName = "../sometext/someothertext"
strName.replace("..", "http://www.website.com")
print strName
</code></pre>

<p>But the only output I get is </p>

<pre><code>../sometext/someothertext
</code></pre>

<p>I've also tried escaping the periods, like </p>

<pre><code>strName = ../sometext/someothertext
strName.replace("\.\.", "http://www.website.com")
</code></pre>

<p>but the output doesn't change. How do I do this?</p>
