JSFiddle - React, Tailwind, and code Playground
by John Allan
JavaScript
let price = '$6,445,343 CAD';
test = new RegExp('CAD$');
console.log(test.test(price));
by John Allan
let price = '$6,445,343 CAD';
test = new RegExp('CAD$');
console.log(test.test(price));