Back

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

Forum Replies Created

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • Chris Court
    Member

    OK, thanks again, David.

    Just to simplify my original question, I’m looking for a way to “Find all examples of the word ‘blah’ where there is no quote mark in the paragraph.” Or more specifically, “Find all examples of the word ‘blah’ where there is no quote mark preceding it in the paragraph.”

    If anyone else has any bright ideas as to how to achieve this, I’d love to hear from you!

    Best
    Chris

    in reply to: GREP: Different behaviour of positive lookahead/lookbehind #77084
    Chris Court
    Member

    OK, Interesting… and useful. It works!!

    Unfortunately I don’t have access to the InDesign magazine… so here is my next question: Is there an inverse to \K? An equivalent to a NEGATIVE lookbehind? For example, if I want to locate all examples of “blah” that are NOT preceded by a quote mark and possibly additional text?

    Thanks for your help, David.

    Best
    Chris

    in reply to: Locating styles with FindChangeByList #76572
    Chris Court
    Member

    Thanks so much, David!

    The syntax on the page you linked to worked a charm… although I did have to change a couple of smart quotes to dumb quotes before the script recognised it.

    Chris

    Chris Court
    Member

    Thanks for your help, amigos,

    As you guessed, Carles, yes, I still have the remove double return line in there…

    Duh!

    Thanks again!
    Chris

    in reply to: Strange GREP behavior #71628
    Chris Court
    Member

    Hey Kenneth,

    I’m no black-belt in GREP, but I may have an answer your question as to why your original style is failing on the specific case you mention.

    Your GREP style looks for any characters that lie between a period and a question mark, and apply a character style to this text, up to and including the question mark. Now, you will notice that in the paragraph where your style fails, there is a second period, immediately before the word “Soul”. Your GREP sees this first period, and sees the question mark, and styles everything in between, including the first sentence and the second period.

    The following GREP should identify only the text you need, correctly… (?<=\.)[\w]+\?

    It seems as if David’s second GREP SHOULD work, but for some reason it doesn’t. Not sure why.

    C

    in reply to: Style to outdent a drop cap. #64270
    Chris Court
    Member

    Genius! That's exactly the solution I was looking for.

    I'm still trying to get a grip on grep – getting there slowly.

    Thank you!

    C

Viewing 6 posts - 16 through 21 (of 21 total)