Python 【Python/re】通常の文字列を正規表現に変換する サンプルコードimportre#1回以上の空白+hoge+任意の文字が0回以上text="+hoge.*"#正規表現に変換pattern=re.compile(text)#fugaに入れ替えるnew_text=re.sub(pattern,... 2020.04.10 Python