Change to "Wildcard" in GREP?
- This topic has 1 reply, 2 voices, and was last updated 6 years, 11 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / Change to "Wildcard" in GREP?
Learn / Forums / General InDesign Topics / Change to "Wildcard" in GREP?
While it is possible to search for wildcards in Find/Change, (such as any letter or any digit), is it possible to change a character to a wildcard character?
My desire is to change each string of placeholder characters labeled ‘YYY XXXXXY’ into groups of random letters and numbers. Is this something InDesign is capable of?
For context purposes I am working on a project that is dealing with the naming of fictional exoplanets, which generally have names like “HD 72659b”, “YBP 1514b” and so forth. I am hoping to replicate this format.
Some exoplanets have less random names such as “Kepler 2b” as well. If there is a relatively easy way to draw from a string library in InDesign that would be lovely to know as well.
I am new to GREP, ID scripting and this community, so your kind help is appreciated immensely. Thanks for all your time guys.
Matt
Hi,
If I understand well, you want to replace all “YYY XXXXXY” by, randomly:
CND 48248w
JND 28585i
WLU 10982m
DWJ 99209k
DMX 65542e
ORK 61765f
CCA 10155l
OUH 98115y
MQR 70956o
RHQ 60107h
…
But, maybe I’m wrong and … the truth is out there!
(^/)
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!