Entries from 2008-02-20 to 1 day
自前ライブラリを使いまくってて理解できないとおもいますが、 一応こんな感じでいけたよーって報告。 # -*- coding: utf-8 -*- def getChatLog(): import time,json,twitter2,re,toDate,datetime file = open("user.dat",'r') userdata = json.read(file.re…
# @(英数字)空白 -> user reg = re.compile('@(\S+\s)') match = reg.match('@showyou ') if match: print "match:", print match.group(1) 結果: match: showyou こうですかね?