Replace a portion of url in python
<p>I need to replace a portion of following url in selenium webdriver+python:</p>

<p><a href="https://ve-215:8443/cloudweb/dropbox_authorized?oauth_token=l8eYuFG8nux3TUHm&amp;uid=69768040" rel="nofollow">https://ve-215:8443/cloudweb/dropbox_authorized?oauth_token=l8eYuFG8nux3TUHm&amp;uid=69768040</a></p>

<p>I need to replace <code>ve-215</code> to a ip address say <code>192.168.24.53</code></p>

<p>I tried using <code>replace</code> but it doesnt work.</p>

<p>Following is code I am using:</p>

<pre><code>current_url=driver.current_url
print(current_url) #prints the url of the current window.

current_url.replace("ve-215", "192.168.53.116")
print(current_url)  #print url with replaced string
driver.get(current_url) #open window with replaced url
</code></pre>

<p>Can anyone help me with what is wrong with the above code?</p>