Report abuse


			
owner = "jon\\'s"   # So the string is   jon\'s    - the backslash should really be there, because this is going to be inserted into a javascript string

"my G5 is fast".sub('my', owner)   #  I would expect to get   "jon\'s G5 is fast"

# I actually get "jon G5 is fasts G5 is fast"