擅长:python、mysql、java
<p>从<a href="http://docs.python.org/library/re.html#re.match" rel="nofollow">the docs</a>(我的重点):</p>
<blockquote>
<p><code>re.match(pattern, string[, flags])</code></p>
<p>If zero or more characters <strong>at the beginning of string</strong> match the regular expression pattern, return a corresponding MatchObject instance. Return None if the string does not match the pattern; note that this is different from a zero-length match.</p>
</blockquote>
<p>也许你想要<code>.search()</code>。你知道吗</p>