find replace a range of characters

Ask a Question related to Adobe Indesign Windows, Design and Development.

  1. #1

    Default find replace a range of characters

    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
    joec Guest

  2. Similar Questions and Discussions

    1. Is there a way to replace characters in a string/array
      I am trying to find a function similar to php's str_replace is there something that will allow me to replace a certain character in a variable? ...
    2. Replace characters in a Field when bindig data
      I have a drop down field on a form. When binding data to the DataValueField property of the drop down, I need to replace "&" with "%". In code...
    3. find/replace
      when a user searched for a value with find/replace from a form he got the message the value could not be found but when I looked for it in the...
    4. Using Replace function to remove two different characters
      I'm using replace function to strip 0s from a particular string: <%=replace(rs1("racelength"),"0","''"%> but I need to also strip empty spaces...
    5. Replace * with return characters?
      Is there a way to do this or not? I want to import a file with return characters but it seems impossible. even with the new find/replace...
  3. #2

    Default Re: find replace a range of characters

    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.
    textmonkey@adobeforums.com Guest

  4. #3

    Default Re: find replace a range of characters

    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.
    Scott_Falkner@adobeforums.com Guest

  5. #4

    Default Re: find replace a range of characters

    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
    joec Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139