I am using Indesign CS5 on iMac, running OS 10.8.3.
I designed a product catalog that has 148 pages. Now I need to save the same design and make a new catalog for our wholesalers. On the wholesalers catalog I need to change the item numbers and add FC in front of each item number. How can I use find change to find each item and change them with FC in front of the item numbers? The following are a few examples of the item numbers:
LED-4042 I want to change it to FCLED-4042
UA-42 I want to change it to FCUA-42
SC-110 change it to FCSC-110
KN-10 change it to FCKN-10
I am hoping there is a fast way to find and change these. I was looking in to GREP, but I could not figure how to do this.
If you are absolutely sure that all of your part numbers obey the pattern as in your examples -- one or more uppercase letters, a hyphen, one or more digits -- and no other "regular" text has this pattern, then GREP indeed is the answer.
Thanks for the the quick answer. But what if I have some items that I have already changed the item numbers with FC in front of the item numbers. How can I filter out those items from my search that already have FC and only search for the items without the FC.
One way would be to just run it and then *remove* any double FC's -- but GREP can do even more! One of its many functions is to scan ahead for the presence or absence of certain text, and only act when it is (or it is not) there. This is called "lookbehind" (before the text you want to match) and "lookahead" (after the text you want to match).
In this case, you want to find a phrase starting with capitals, but NOT the exact string "FC". That's a job for Negative Lookahead -- Only Match If Not.
Try this: search for
... the Replace With stays the same.
Thank you very much for your suggestions! Your code as saved me hours of time. I really need to learn more about GREP.
Now I have QR Code with copy another it which are grouped together on different layers and I need to move it on its own layer where I can turn the layer off on FC catalog. I have posted this question separately, hope to get an answer for it.