Python - decode or regex?
<p>I have this <code>dict</code> being scraped from the web, but it comes with this <code>unicode</code> issue:</p>

<pre><code>{'track': [u'\u201cAnxiety\u201d',
           u'\u201cLockjaw\u201d [ft. Kodak Black]',
           u'\u201cMelanin Drop\u201d',
           u'\u201cDreams\u201d',
           u'\u201cIntern\u201d',
           u'\u201cYou Don\u2019t Think You Like People Like Me\u201d',
           u'\u201cFirst Day Out tha Feds\u201d',
           u'\u201cFemale Vampire\u201d',
           u'\u201cGirlfriend\u201d',
           u'\u201cOpposite House\u201d',
           u'\u201cGirls @\u201d [ft. Chance the Rapper]',
           u'\u201cI Am a Nightmare\u201d']}
</code></pre>

<p>which is the best way of stripping out these characters, using <code>regex</code>, or is there some <code>decode</code> method?</p>

<p>and how?</p>

<p>Those are quotes (â and â). If you just want to get rid of them at the beginning or end of the string, it is easiest to <code>strip</code> them.</p>

<pre><code>&gt;&gt;&gt; u'\u201cAnxiety\u201d'.strip(u'\u201c\u201d')
u'Anxiety'
</code></pre>

<p>If you want to get rid of them anywhere in the string, <code>replace</code> them:</p>

<pre><code>&gt;&gt;&gt; u'\u201cAnxiety\u201d'.replace(u'\u201c', '').replace(u'\u201d', '')
u'Anxiety'
</code></pre>

python regex unicode