Forum Replies Created
-
AuthorPosts
-
Paul White
MemberI thanks for your reply Keith.
I keep getting a Syntax error. Error number 8 on line 3
offending text: –I know nothing about scripts so totally in your hands
Paul White
MemberFound it! if anyone is interested
https://in-tools.com/article/scripts-blog/separate-pages-script/
Paul White
Memberwhere or how do you upload a cs6 doc?
Paul White
Memberthat didn’t work….!! Although
Free Package…. appears as a sub header and within paragraph text but in upper and lower text format (f|F)ree (p|P)ackage
The Crown Hotel
(^.+\r) I had to put a tab in after the hotel name because it was applying the style to the start of every sentence with the paragraph style not just the start of the story. unless anyone knows a better way of doing this?The Crown Hotel (^.+\r)
DorsetFree Package (f|F)ree (p|P)ackage
Cant find the best way to style the Dorset.
had thought of (?<=\r\r)
This is the only occasion where there are 2 hard returns but I can get this to work. It will be any word/any character so I thought the positive lookbehind from the two returns would be easy…any ideas
Paul White
MemberJust thought of something else whilst working on the above.
Can you grep a find for a word ‘whitey’ and make it a styled hyperlink?
Paul White
MemberHi Masood.
The help you gave me last week was invaluable. However, I am having problems trying to apply similar commands to a fairly basic grep. Just wondering if I could have a little assistance?
1. How do you find a work to apply a style to? ie ‘Free package’ anywhere within a paragraph?
2. Apply one style to ie. ‘The Crown Hotel’ \r this is any name at the start of a paragraph before the soft return, then followed by location ‘Dorset’?
The paragraph would look like this….The Crown Hotel
DorsetLorem ipsum dolor sit amet, FREE PACKAGE elit. Sed dui felis, pellentesque eget neque at, fermentum iaculis nisl. Nullam volutpat laoreet facilisis. Mauris scelerisque ex euismod posuere congue. Maecenas vehicula consectetur dictum. Nullam tempus,
FREE PACKAGE
Lorem ipsum dolor sit ametPaul White
MemberIt all helps. Does not seem so alien to me now and slowly building up some knowledge. Actually finding resources on this was difficult until now, with your help.
I am sure I will have loads of other questions but this helps to reduce time in future projects.
Thank you
Paul White
MemberThat works a treat… just so I know what is the \K. part of the code stand for?
Paul White
MemberThat works great, recreated it and used it on my working file. All fine here not sure why it would’t work on the original file, the file upload was a big help.
sorry to be a pain, what grep would be ideal to manage the word weymouth for instance ie place name bold style N.B place names change per line.
largest place name is WARNERS – CORTON HOLIDAY VILLAGE
32 characters18TH – 22ND MON/FRI WARNERS – CORTON HOLIDAY VILLAGE £279 1/2 bar nightly
18TH – 22ND MON/FRI Warners – Gunton Hall £299 £1 bar 12 noon – 8 pm nightlyJust trying to learn more about this but your input is a great relief and very insightful.
Paul White
MemberHi
Firstly £\d+\K.+ doesn’t work. I am using CS6 and you have put Apply Style: Price & AdditionsPrice is one style, Additions is another. but the above didn’t change anything.
I also didn’t know the grep in paragraph styles didnt do find and replace and can only be done automatically without a manual find and replace.
Like you mention GREP Find/Change:
Find What: ~=
Change to: ~~
This worked for me. Thank you.was thinking how do you select for style change anything from ‘start of line’ or after |\r a positive lookup to the first (ie a line of digits and charctors no fixed length up to the 1st tab point.)
Paul White
Memberohh and how do you replace a character ie em dash “–” replace with a minus sign “-”
thanks
Paul White
MemberMasood that works brilliantly. Thank you?
how would i go about changing any character before the 1st tab? in this case the date. would it be this?
(?<=).+
Paul White
MemberWhat I am trying to achieve is when I apply a paragraph style to this document it automatically changes price tab and additions tab content using Grep
I can’t add an image so difficult to explain.
5th – 9th [TAB] Mon/Fri [TAB] Weymouth [TAB] £149 [TAB] 1/2 Price bar noon – midnight[RETURN]
[TAB]
[RETURN] \r1) I am looking to change the character styles of Price= £149
2) I am looking to change the character styles of Addition= 1/2 Price bar noon – midnightN.B. Character styles are setup.
-
AuthorPosts
