Let's say I have a string like this:
s = "blah blah start=0 length=10"
and i have two variables named start = 0 and length = 100.
Now, I want to form a new string (or replace the existing string) with:
s = "blah blah start="+str(start)+" length="+str(length)
but I want to do it dynamically, e.g. using the replace() method on string s or something similar and not by typing the above code by hand. That is, I want to form a new string with strings and variable names using python code. The string s changes quite often, as it is a url.
Is this possible?