Forum Replies Created
-
AuthorPosts
-
June 3, 2019 at 6:36 am in reply to: Indesign grep – Applying character style to a letter on the third tab #117003
Andrew C
MemberHi Jeremy
Wow that diagram is clever way of illustrating the grep and is very helpful.
I must have got lucky then because when searching for ‘A’ i typed: .+.+\K.*A(?=(?!£)) i placed the A after the asterisk and it seemed to work
but looking at your breakdown it should be: .+.+\KA(?=(?!£))There are sometimes commas, parentheses in the third tab location for example when searching for A and the third tab can sometimes look like this:
A, B, B, G
B [7, 35]
A, A (Frozen)Therefore the grep search skips it but ill try and figure out how to ignore commas etc as i think i’ve asked much of you already. I think my main mental hurdle is completely understanding the various uses of positive and negative lookahead and behind and the sequencing of the expressions but your diagram has helped me get somewhat closer….at times its been like staring at a car engine and having no clue :)
This is something i really want to grips with but unfortunately i don’t have one of those minds that are proficient with formulaic equations so its going to be alot of trial error, i have to admit i had all but given up before your help. I was preparing myself to tediously manually copy and paste each entry.
Thanks for your time and patience Jeremy its greatly appreciated.
June 3, 2019 at 3:35 am in reply to: Indesign grep – Applying character style to a letter on the third tab #116998Andrew C
MemberHi again Jeremy
I think i got it, thank you very much!!! I placed the character i am searching for after the * replacing the ?
I need to practice using grep it has such great utility, i’m embarrassed to say i have been using indesign for over 8 years and had never needed it before. It reminds me of setting up automations in ifttt.
But thanks again you have saved me so much time. Have a great day!
June 3, 2019 at 3:17 am in reply to: Indesign grep – Applying character style to a letter on the third tab #116997Andrew C
MemberHi Jeremy im back at work. Hope you had a pleasant weekend, thanks for getting back to me. You are correct there is always a ‘£’ in the 5th final tab
I have tried your grep expression and assumed that perhaps the asterisk was a wild card and changed it to ‘H’. . i also messed about with your grep at regxr changing variables but no joy.
Perhaps my example of tabs aren’t really showing well when i paste them into this post message, using the above as an example i will annotate below if it helps?
1ST TAB: SH10
2ND TAB: Advanced Screen for MSM
3RD TAB: FCRU, PCR Swabs x 2, B (need to change variables in this tab, grep required for this line)
4TH TAB: 4 hours (changes sometimes hours, sometimes days)
5TH TAB: £00.00 (always price at the end typically no more than 2 or 3 decimal points i.e £21.00 or £176.00)Im not sure i fully understand how to implement this grep, just when i seem to think i have some understanding i realise i don’t. Apologies if i’ve over engineered this post.
May 31, 2019 at 7:23 am in reply to: Indesign grep – Applying character style to a letter on the third tab #116960Andrew C
MemberHello Jeremy
Thank you so much for the swift response and taking the time to respond.
Your grep expression is perfect and theres no way i would have reached that conclusion on my own, i’m now able to select the ‘B’ and change it. However there are instances in the third tab when there are other letters and in some cases words (as shown below – FCRU, PCR Swabs x2, B, A, H )
Would it be possible to isolate the grep to look for a particular letter or word in the third tab ignoring everything else? For example if i wanted to apply a character style to just the letter B or A or H in the third tab, the words are less important but would be useful.
SH10 Advanced Screen for MSM FCRU, PCR Swabs x 2, B 4 hours £00.00
ACTB Acetone – Blood A or H 2 weeks £00.00 -
AuthorPosts
