2008-02-20 正規表現使ってみる python # @(英数字)空白 -> user reg = re.compile('@(\S+\s)') match = reg.match('@showyou ') if match: print "match:", print match.group(1) 結果: match: showyou こうですかね?