4 Replies Latest reply on Aug 9, 2010 5:01 AM by SB Masthan

    CS3/JS:how can we compare punctuation elements with content?

    SB Masthan

      Dear All,


      How can we compare the punctuation elements with the content (especially in if loop). I have tried with below command to check the first character of every line for any punctuations (like in find Grep option) but couldn't get the result. If any solution to compare the content with all puntuation elements globally, it will be really helpful for us.


                      if (line[i].contents.substring(0,1) == "[[:punct:]]")


      Kindly assist.