google / re2

RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
BSD 3-Clause "New" or "Revised" License
8.98k stars 1.14k forks source link

How to Whitelist URLs with specific keywords? #231

Closed gtg430i closed 4 years ago

gtg430i commented 4 years ago

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".

https://www.macys.com/shop/product/fantasy-flight-games-star-wars-x-wing-miniatures-game-kihraxz-fighter-expansion-pack?ID=10379715&PartnerID=LINKSHARE&cm_mmc=LINKSHARE-_-47-_-39-_-MP4739&ranMID=3184&ranEAID=Xqv79DCBYJo&ranSiteID=ABCDEFGZ-zhNFRS_B3yd3S8B_WT1_dQ&LinkshareID=Xqv79DCBYJo-zhNFRS_B3yd3S8B_WT1_dQ&m_sc=aff&PartnerID=LINKSHARE

What would be the Regex URL pattern?

junyer commented 4 years ago

Please contact Firebase Support for help with your issue.