Find/Change GREP - FindChangeByList - help!
hi,
can grep problem? have long unformatted list of products, need couple of grep find , change queries format list. formatting based on paragraph styles product header, description , product code. have grep working correctly find product code lines , apply 'product code' paragraph style, i'm struggling target product header line. product header on next line after product code, or found on line above product description. need grep find product header apply product header paragraph style. i'm looking @ using findchangebylist; far have folowing:
| grep | {findwhat:"(product code|product code)$"} | {appliedparagraphstyle:"product code-green"} |
the above line finds product codes , applies paragraph style. works indesigns find/change panel , findchangebylist.
but next bit doesn't work:
| grep | {findwhat:"^(?<=\\r)", appliedparagraphstyle:"product code-green"} | {changeto:"", appliedparagraphstyle:"product header-green"} |
i've tried target 'start of paragraph (^)' (this product header) has - 'paragraph break (\r)' 'product code-green' applied (this product code), in front of it. - (am right in thinking in findchangebylist script need 2 slashed on \\r - have tried 1 , 2 - no joy.)
if in indesigns find/change panel kind of work. if click find, find correct point, , click change, apply correct style product header - if click change - doesn't work. reports '0' instances found, yet if click find again find next instance. it's kind of working on individual click , find basis, not on global change - strange? , doesn't work @ when run findchangebylist.
anybody got thoughts on why happening? or better piece of grep try? running findchangebylist. hope above makes sense.
thanks
More discussions in InDesign
adobe
Comments
Post a Comment