GREP pattern not working in JavaScript


the following pattern `\r+\z` works in indesigns grep find , replace replace blank paragraphs @ end of story doesn't seem work in scripting environment.

 

why doesn't following work:

 

app.findgreppreferences = nothingenum.nothing; app.changegreppreferences = nothingenum.nothing;  app.findgreppreferences.findwhat = '\r+\z';  app.activedocument.selection[0].changegrep(); 

\\r+\\z



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"