programming-language正規表現正規表現オブジェクトOn this page正規表現オブジェクト Python pyr1 = re.compile(pattern, flags) compile すると RegexObject が作成される 繰り返し使う場合は こうしたほうが速い pyr1 = re.compile(pattern, flags)if r1.match(pattern, str): ... Ruby rbr1 = Regexp.new("xxx") rbr1 = Regexp.new(Regexp.quote("xx*x")) # メタ文字をエスケープ 📩 ご意見・ご感想はこちらから