I'm trying to use python to do a simple search and replace within STAX (http://staf.sourceforge.net/current/staxug.pdf
) My code is:
myVar = "GrunthosTheFlatulent"
re.sub('u', 'Q', myVar)
'myVar is now %s' %(myVar)
I expected to get GrQnthosTheFlatQlent but got GrunthosTheFlatulent instead. Can someone tell me what I'm doing wrong? Thanks!