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:
<script>
myVar = "GrunthosTheFlatulent"
import re
re.sub('u', 'Q', myVar)
</script>
<call function="'STAXUtilLogAndMsg'">
'myVar is now %s' %(myVar)
</call>
I expected to get GrQnthosTheFlatQlent but got GrunthosTheFlatulent instead. Can someone tell me what I'm doing wrong? Thanks!