I am trying to count the checkmarks in a given string. my string may be:
var myString = "one ✔ two ✔ three ✔"
I have tried using myString.match(/✔/g) || []).length;
, but this is returning 0
(I believe that happens because ✔ is a dingbat symbol).
I know the unicode for "✔" is 2714, can I use this in my expression?