Discussion:
find replace a range of characters
(too old to reply)
joec
2004-06-16 15:12:48 UTC
Permalink
I need to find and replace a range of characters that are contained in brackets like below:

[graphic - DTOT211-ToyVotes.eps]

It seems the brackets are throwing me off. I just need to find the specific range and replace it with nothing, to strip it out.

Thanks in advance

Joe
t***@adobeforums.com
2004-06-16 16:09:50 UTC
Permalink
Edit>Find/Change

Find What:/[graphic - DTOT211-ToyVotes.eps]

Change To:space

Find Next or Change All

I just did it on a copy of your email and it worked like a charm, brackets and all.
S***@adobeforums.com
2004-06-16 16:12:53 UTC
Permalink
I think this is where a wildcard string would come in handy, so you could search for "[\$]" to find anything surrounded by square brackets. InDesign does not have this feature. The documentation of this is a little vague, as it does not specificly state that the wildcard "\?" is exactly one character long.
joec
2004-06-17 12:28:32 UTC
Permalink
Hi Scott,
The wildcard string is what I have been trying, but it appears that the [ ] may actually have some kind of wildcard attribute. I came across this info somewhere:

[ ]

Specifies one of any character in a set, as in <WILDCARD> ` c[auo]t ` , which locates "cat," "cut," and "cot." Note that you must enclose the word which includes a set in backquotes (`) and there can be no spaces in a set.

Do you see any way around this, as the text string I am searching for actaully contains brackets? Thanks for the replies Textmonkey and Scott
Continue reading on narkive:
Loading...