Grep replace issue


i'm trying grep in scripting modify style of words designated markup. example: "the ^sun^ , ^moon^ celestial bodies."

 

app.findgreppreferences.findwhat = "(\^.+?\^)"


i use grep statemen find "^sun^" , "^moon^", , can change characterstyle, i want remove "^" marks @ same time if possible.

 

is there way set expression in .tochange property can replace selection between two  "^" marks? is, want change "^xxx^" become "xxx".

app.findgreppreferences.findwhat = "\^(.+?)\^"

app.changegreppreferences.changeto = "$1"



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support