Python:正規表現の全行マッチを実行する 2020/05/16プログラミングpythonregex実装例import re with open('/path/to/file') as f: # ファイルから全行を取得(str型) c = f.read() # …このエントリーを読む »