Created
November 26, 2015 03:52
-
-
Save lukebussey/754fdec17f5b17643064 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove utm_* and mkt_tok parameters | |
(?:utm_[a-z]+|mkt_tok)=[^&]+&? | |
Remove trailing & or single ? | |
\??&?$ | |
Input: /?utm_foo=bar&utm_bar=baz&mkt_tok=123&utm_baz=qux&bar=qux&utm_qux=foo&baz=qux&foo=bar | |
Output: /?bar=qux&baz=qux&foo=bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment