GREPS: find a white space between digit and a letter
- This topic has 2 replies, 3 voices, and was last updated 9 years, 10 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / 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
Tagged: find and replace, GREPs, WHITE SPACE
Trying to replace white space or make it smaller in between digit and letter.
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.
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.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!