I am trying to use match command whether the selection text contents ndash and mdash. Here is my step
mytxt = app.selection.contents;
mytxt results "MC–AC"
var a = mytxt.match('–');
I cant match endash here i am getting "null"? how I can match Ndash and Mdash?
thanks in advance
a r u l
var a = mytxt.match (/[\u2013\u2014]/);
Thanks a lot perfect