I would like to replace words in a string sentence such as:
What $noun$ is $verb$?
What\'s the regular expression to replace the characters
Given that you are free to modify $noun$ etc. to your liking, best practise to do this nowadays is probably to using the format function on a string:
$noun$
format
"What {noun} is {verb}?".format(noun="XXX", verb="YYY")