little grep help

Learn / Forums / General InDesign Topics / little grep help

Tagged: 

Viewing 5 reply threads
  • Author
    Posts
    • #72235
      Gert Verrept
      Member

      Art. 153 143 is what I have. I would like to select only the middle number (here 153), not the spaces around them and apply char style (the last part is easy, that’s no problem).
      Art. 153 (vroeger art. 143) is another notation where I have the same problem, selecting only 153, nothing else.
      The real problem: Art. 153 can exist too and then nothing has to be undelined.

    • #72236
      Justin Sligh
      Member

      Gert,

      (?<=^Art\.\s)\d+

      Positive lookbehind for “Art. ” only at the beginning of a paragraph followed by one or more digits.

    • #72244
      Gert Verrept
      Member

      Justin, Thnks. I did ask it sometime before, but could remember the solution (the age I suppose)

    • #72348
      Masood Ahmad
      Participant

      Gert, the “age” not only loose something, it gains experience as well :)

    • #72359
      Anne Wold
      Participant

      I am trying to clean up an ebook I converted from PDF. I have figured out how to corrected most of the mistakes that crept in but I am having a hard time figuring out an easy way to find quoted text that has broken over 2 paragraphs.

    • #72411
      Masood Ahmad
      Participant

      Hi Anne, Try this using GREP Find/Change

      Find what:
      “.+\r.+?”

      any queries, please revert back…

Viewing 5 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo