2 Replies Latest reply on May 5, 2010 6:59 AM by Techi Panda

    match Ndash and Mdash

    Techi Panda Level 2

      Hi scripters

       

      I am trying to use match command whether the selection text contents ndash and mdash. Here is my step

       

      mytxt = app.selection[0].contents;

       

      mytxt results "MC–AC"

       

      var a = mytxt.match('–');

      alert(a);

       

      I cant match endash here i am getting "null"? how I can match Ndash and Mdash?

       

      thanks in advance

       

      regards

      a r u l