Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 316 through 330 (of 500 total)
  • Author
    Posts
  • in reply to: Grep or nested style #75833
    Masood Ahmad
    Participant

    Sorry, you cannot do a find and replace using the GREP style. To achieve things like this, you have to use the Find/Change feature either Text or GREP.

    in reply to: Greps Search Question #75825
    Masood Ahmad
    Participant

    Eugene, your suggestions are always welcome. I too have learned a lot from your replies. You’re amazing. Your help is and will always be needed. It is just that I love GREP, and wants to explore more…

    Please don’t take it otherwise :)

    in reply to: Greps Search Question #75823
    Masood Ahmad
    Participant

    Yes there is:

    Find What: (\[bold\])(.+?)(\[bold\])
    Change to: $2
    Change Format: bold character style

    in reply to: Greps Search Question #75820
    Masood Ahmad
    Participant

    Then this will suit you best:

    Find What: (?<=(\[bold\])).+?(?=(\[bold\]))
    Change to: Change Format: bold character style

    Hope this works :)

    in reply to: Greps Search Question #75818
    Masood Ahmad
    Participant

    Clyde, what do you mean by [bold]. Is it a bold character or is it the word ‘bold’ within the square brackets.

    If it is the word ‘bold’ within square brackets then here is the code for you:

    Find What: (?<=(\[bold\])).+?(?=(\[bold\]))

    in reply to: Code not working in GREP Style compared to Find/Change #75795
    Masood Ahmad
    Participant

    Hi Eugene,

    Thanks for trying this for me, but this is not the case. Nested Styles won’t work as the string I’m trying to style is a part of huge text, running into multiple pages. In that long-text, the location occurs several times, therefore, I’m trying to automate the styling. The only condition that matches with the location is that there are two hard returns and a heading ‘about the location’ running after it.

    To Text: ^.+(?=(\r\r(?i)about the location(?-i)))

    I have achieved this through a trick but that is leading me to an additional step.

    Any other ideas…

    in reply to: Grep help in paragraph style #75721
    Masood Ahmad
    Participant

    You can upload it to your Dropbox and share the link here or can email me at masoodahmad@inbox.com

    By the way has the code for your “free package” (listed above) worked?

    in reply to: Grep help in paragraph style #75689
    Masood Ahmad
    Participant

    Hi Paul, try this to apply style to the Free Package:

    Apply Style: Your Character Style
    To Text: (?i)free package(?-i)

    Regarding your second query, It seems I haven’t understood your query very well. I would suggest you to upload your InDesign file or atleast provide three-four paragraph of text to understand it better along with your query in detail. For example: what the text will look like and what you want to achieve.

    Waiting….. to help :)

    in reply to: SERIES OF QUESTIONS (1/54), ASAP ANSWER PLEASE #75643
    Masood Ahmad
    Participant

    @David, It seems the site has become a fun-site for fun-lovers :)
    Funny post by Pan.

    in reply to: Grep help #75568
    Masood Ahmad
    Participant

    So, in the above example, where do you exactly wants to insert the line-break?

    in reply to: Grep help #75561
    Masood Ahmad
    Participant

    Luis, based on the text you gave in the starting, I created a code and tested it in CS6. If it is not working for you, then please supply some more text, lets say three to four paragraphs.

    in reply to: Grep help #75559
    Masood Ahmad
    Participant

    Or
    Find What: (^[\u ]+\.?)([\u ]+)

    in reply to: Grep help #75558
    Masood Ahmad
    Participant

    Hi Luis, try this using GREP Find/Change:

    Find What: (^[\u ]+\.?)([ ]+)
    Change to: $1\r$2

    Please let me know if it works…

    Masood Ahmad
    Participant

    Jongware, that was a great script. I love the way you share your talent and experience with others. Thanks.

    in reply to: Grep help in paragraph style #75552
    Masood Ahmad
    Participant

    Hi Paul,

    I was not available for the last couple of days and I didn’t realized that there is another question hidden in this thread. If you would have started a new post with your newer question, then someone else might have answered it.

    However, here are the codes as per my understanding:
    1. How do you find a work to apply a style to? ie ‘Free package’ anywhere within a paragraph?

    Answer:
    Apply Style: YourStyle
    To Text: Free package

    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
    Dorset

    Answer:
    Apply Style: YourStyle
    To Text: (^.+\r)(?=Dorset)

    Hope these will help.

    Regarding your hyperlink question, I think that is not possible. Might be someone else could have a better idea…

Viewing 15 posts - 316 through 330 (of 500 total)