2020-04-07 正規表現 Ruby %r記法 %r記法を使うと、正規表現内にある「/」や「[ 」などの文字に対するエスケープを省略できる。 /https:\/\/www.aaaa.net\/blog\// %r(https://www.aaaa.net/blog/)