擅长:python、mysql、java
<p>我想你可以用:</p>
<pre><code>import re
result = re.findall(r"\[##[^#]*##]", string)
</code></pre>
<hr/>
<p><a href="https://i.stack.imgur.com/8pXxj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8pXxj.jpg" alt="enter image description here"/></a></p>
<hr/>
<p><a href="https://regex101.com/r/12yNih/1" rel="nofollow noreferrer">Regex Demo</a><br/>
<a href="https://ideone.com/wb0qmX" rel="nofollow noreferrer">Python Demo</a></p>