擅长:python、mysql、java
<p>您可以过滤结果:</p>
<pre><code>import re
l=[" xkn59438","yhdck2","eihd39d9","chdsye847","hedle3455","xjhd53e","45da","de37dp"]
pattern = r'd.*?e'
print(list(filter(lambda x:re.search(pattern,x),l)))
</code></pre>
<p>输出:</p>
<pre><code>['chdsye847', 'hedle3455', 'xjhd53e', 'de37dp']
</code></pre>