Back

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

  • You must be logged in to reply to this topic.Login

Don't replace searched GREP

Return to Member Forum

  • Author
    Posts
    • #76492
      muhakan
      Member

      Hi,

      I have a large text copied from PDF file and it has many breaks like this:

      1. text text text
      text text text text.

      2. text text text
      text text text text.

      I searched in GREP for any End of paragraph \r followed by any Letter [\u] but the problem is that the searched text is selecting the letter.
      How can I search for the break & letter to delete the breaks that are not followed by number but without selecting the letter? Or which is the best way to delete the breaks?

      I searched regarding this issue but didn’t find an answer.

      Best Regards

    • #76529
      Masood Ahmad
      Participant

      Try this using the GREP Find/Change:

      Find what: \r(?=\D)
      Change to:

      Note: the Change to field have a normal space.

    • #76570
      muhakan
      Member

      Thanks Masood, but it didn’t work.

      The current text is like this:

      1. text text text
      text text text text.

      I want to change it to:

      1. text text text text text text text.

      Regards,

    • #76571
      Masood Ahmad
      Participant

      It should work, in case if it is not working for you. I would suggest to send me your InDesign file or the actual text to verify.

      My email address is: masoodahmad@inbox.com

    • #76575
      David Blatner
      Keymaster
    • #76581
      muhakan
      Member

      Thanks Masood and David.
      It didn’t work, but it gave me a clue. I did it like this:

      First the Breaks: Search ~b and change it.

      Second: Search \d+ and change it to $0

      It worked in my case.

      Regards,

Viewing 5 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads