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
Post a Comment