2019-01-11 文字列から数字取得 文字列から数字のみ取り出すコード よく使うのでメモ def getNum_fromStr(line): return ''.join(re.findall('[0-9]', line))