📅  最后修改于: 2022-03-11 15:01:38.650000             🧑  作者: Mango
// Tests website Regular Expression against document.location (current page url)
if (/^https\:\/\/example\.com\/$/.exec(document.location)){
console.log("Look mam, I can regex!");
}