Python Regex Matching characters
<p>I am trying to learn Python regular expressions. I have a long string that contains many patterns that look like: <code>#v=xxxxxxxxxx</code> where x is the variable characters I want.</p>

<p>I was thinking I could use <code>re.findall(r'...', myString)</code> where <code>...</code> is my pattern. That's the part I'm having trouble with. I somehow need to get the next 10 characters after each <code>#v=</code>.</p>

<p>All help is appreciated :)</p>

<p>You were close! Here's an RE that'll work: </p>

<pre><code>In [1]: import re

In [2]: s = "#v=yyyyyyyyyy #v=xxxxxxxxxx #v=zzzzzzzzzz"

In [3]: re.findall(r'#v=(\w{10})', s)
Out[3]: ['yyyyyyyyyy', 'xxxxxxxxxx', 'zzzzzzzzzz']
</code></pre>

python regex