I am using Firebase to shorten link from affiliates.
I need to whitelist URLs with specific keyword. That keyword would be my account ID.
For example, all deep links will contain the keyword "ABCDEFGZ".
What would be the Regex URL pattern?
Here is a real link from affiliate:
My affiliate ID is Xqv79DCBYJo.
The Regex URL I put is:
/*= *Xqv79DCBYJo&/g
I don't know why it s not working, does spacing between characters has a role?
Please see this image:
Okay let s work an example: Deep Link from Affiliate network: https://click.linksynergy.com/link?id=Xqv79DCBYJo&offerid=727010.8053672236323&type=2&murl=https://www.macys.com/shop/product/vogue-eyewear-womens-sunglasses?ID%3D10323875%26PartnerID%3DLINKSHARE%26cm_mmc%3DLINKSHARE--91--67-_-MP9167%22+rel%3D%22nofollow%22
Short Link from Firebase: https://ads.shipperman.us/voguesg
As you see, my customer ID is Xqv79DCBYJo.
Try these as separate entries (at the same time):
For when your affiliate is the last entry in the URL:
^https://.*=Xqv79DCBYJo$
For when your affiliate is the somewhere in the middle of the URL:
^https://.*=Xqv79DCBYJo&.*$
These regular expressions use RE2 syntax which is a very basic regex implementation. Many common idioms such as "/g" do not work for these. See the syntax reference for details.