2 Replies Latest reply on Jun 14, 2015 3:43 PM by Digital-junkie

    remove grep in para styles




      I added grep styles to my para styles:


      for (var i = 1; i < myParaStyles.length; i++) {

          var myGrepStyles = myParaStyles[i].nestedGrepStyles.add();

          myGrepStyles.grepExpression = ".(?=»)";

          myGrepStyles.appliedCharacterStyle = myDoc.characterStyles.itemByName("Stylename");



      in a new version I have to get rid of those grep styles. Replacing the stylename with "[None]" is not working, and deleting the style is not a solution either, because it might is used somewhere else.


      any ideas?