All your suggestions can be broken if the outermost quotes are the same as something in the text... But I cracked it. Take a look. >>> chr(34) '"' >>> chr(39) "'" >>> chr(34)+chr(39) '"\'' >>> chr(39)+ chr(34) '\'"' >>> print "\"" " >>> -- Posted via http://dbforums.com