How to escape a ( backslash and a single quote) or double quote in python !
<p>How to escape a backslash and a single quote or double quote in python 
For example :</p>

<pre><code>Long string = '''some 'long' string \' and \" some 'escaped' strings'''
value_to_change = re.compile( A EXPRESION TO REPRESENT \' and \" )
modified = re.sub(value_to_change , 'thevalue' , Long_string )

## Desired Output 
modified = '''some 'long' string thevalue and thevalue some 'escaped' strings'''
</code></pre>

<p>Thx in advanced !</p>
