GREPS: find a white space between digit and a letter

Learn / Forums / General InDesign Topics / GREPS: find a white space between digit and a letter

Viewing 2 reply threads
  • Author
    Posts
    • #68636

      Trying to replace white space or make it smaller in between digit and letter.

    • #68641

      I’m afraid I’m an idiot when it comes to grep. But you could do a simple search and replace.

      1) In the find field, search for any digit + space + letter
      2) Replace with the color red
      3) Search for red space band
      4) Replace with nothing, or designate a point size
      5) Search for the color red
      6) Replace with black (or the color the text is)

      Of course, this is under the assumption it’s a one-color job, and the color red is not used. If it’s multi-color, then this probably wouldn’t work.

    • #68653
      Masood Ahmad
      Participant

      Hi Azamat,

      Please try the following using GREP Find/Change:

      Find what:
      (\d)\x{0020}([\l\u])

      Change to:
      $1$2

      Where “\x{0020” is the unicode value for a normal space. If you want any space than use “\s” instead of “\x{0020}” without quotes.

      Let me know if it solves your problem.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>