擅长:python、mysql、java
<p>使用lazy方法从索引1中获取匹配的组。你知道吗</p>
<pre><code>\[Interest: (.*?)\]
</code></pre>
<p><a href="http://regex101.com/r/sR4oP7/1" rel="nofollow">DEMO</a></p>
<p>示例代码:</p>
<pre><code>import re
p = re.compile(ur'\[Interest: (.*?)\]', re.IGNORECASE)
test_str = u"This is something of [Interest: stuff]. blah blah blah"
re.match(p, test_str)
</code></pre>