I must say, you've had quite an impressive go at it! Unfortunately, this is a limitation in the GREP library Adobe used for InDesign. Lookbehind doesn't work for lookbehind strings of different lengths. This won't work:
You have to split up the entire thing into two parts:
If you are using this in a GREP style, it might just be easier to use multiple GREPs.
Thanks for your answer Jongware,
I used this script which can chain together GREP searches...
So I told it to do all searches individually and ran the script.
But if I do it that way, I run into another problem, where I have an entry that will actually have the same movie accross 2 channels and it causes the second part of the channel name to be bolded
I wil try splitting it up as you suggested and see how I go with that.
Please don't open two seperate threads where one would do.
I suspect the best solution here is not to use GREP to format this information in InDesign.
Where is it coming from? A database of some sort?
Either way, I suspect you would be better off formatting the information externally (perhaps by producing InDesign Tagged Text) before you import (Place) it into InDesign.
Maybe that doesn't work for you, but can you tell us more about your workflow?
Sorry John, I wasn't sure about the double post. I just thought I might have been a bit too much of a problem to tackle in one post. But in future I will keep it to one.
With the text, I get emailed a Rich Text Format file (I dont know how it is created) but for the moment I have to assume that I can't get it to come in from the suplier with tags (I will look into it during the week however).
Once I get the text, I place it into Indesign and then I format all of the movie names manually with the eyedropper tool. To change all of the stars and fractions, I have a system of find and changes to capture all instances. I use the ^c function in the change field (In just the regular "Text" find and change) which will replace what-ever I search for with the last thing I coppied to the clipboard.
I am also restricted to using CS3, so I can't use GREP styles.
With the text, I get emailed a Rich Text Format file (I dont know how it is created) but for the moment I have to assume that I can't get it to come in from the suplier with tags (I will look into it during the week however)
Yeah, you should check. Also, have you double-checked to make sure the RTF file doesn't already have styling applied? You should look at it with a text editor, too.
Reading this thread, I've lost track of whether you have an open probem or not...
I will say, if I were doing this, I would probably try to do the formatting based on the position in the text (i.e. "first word after the first comma is bold," and "first through rd word after the first comma is bold if the 2nd word is an &"), but that might not be the best plan. Still, it's how I would start.