擅长:python、mysql、java
<p>可以在Python中使用正则表达式。例如:</p>
<pre><code>import re
test="""124dave87 10 months ago :) ...Thank you for making this video. Reply ·
kateDVKH 1 year ago @karluchii19? i'm still trying to figure out who you are?!? Reply ·
shotwioke 3 months ago hey how is everything going with? your health-i hope/pray things are going good for you.God bless Reply · in reply to MrNickkaye (Show the comment)
"""
for line in test.split('\n'):
words = re.findall(r'\w+', line)
if(len(words) > 0):
# write words[0] to mysql
</code></pre>