I used regular expressions to get a string from a web page and part of the string may contain something I would like to replace with something else. How would it be possible
Use the replace() method on string:
replace()
>>> stuff = "Big and small" >>> stuff.replace( " and ", "/" ) 'Big/small'