Python regular expression(.map file parsing)
<p>I want to make a program that parses a .map file and I can't figure out what regular expression should I use to identify the name of a section.
<br><code>.text                  00040000    00000d7e</code><br>
I want to get <code>.text</code> string from this line. There is no other(whitespace character) before it. What regular expression should I use?</p>

<p>Simply use <code>split</code>:</p>

<pre><code>yourString.split(' ')[0]
</code></pre>

<p>It will print:</p>

<pre><code>.text
</code></pre>

python expression