ASPやCMSを使っていますと、とにかくURLにパラメータがたくさん付きますよね。GAのカスタムフィルタでも実は意外と面倒なのが、URLの整理です。今回は、Googleスプレッドシートの正規表現関数を使ってURLを整理してみたいと思います。 Googleドキュメント・スプレッドシートの正規表現関数 公式ヘルプはこちらです。 Google スプレッドシートの関数リスト – Google ドキュメント ヘルプ そもそも、何でEXCELじゃないの?と思われる方もいらっしゃるかと思いますが、実はEXCELは標準では正規表現が使えないんです。アドオンで利用可能になるらしいですが、まあGoogleドキュメントは手軽なのでこちらで進めます。 正規表現の関数には、以下の3つがあります。 =RegExExtract(文字列, 正規表現) >>抽出 =RegExMatch(文字列, 正規表現) >>マッチ判定