Selecting Text between two points

Learn / Forums / General InDesign Topics / Selecting Text between two points

Viewing 4 reply threads
  • Author
    Posts
    • #101790
      Larry Pitts
      Member

      Hello:
      I’m trying to select text between two point in a text file, and could use some help.
      Had a similar problem a few months ago and Aaron Troia helped me out.
      But now I have another issue I could use help with.

      I have a list of items (sample below) that have a bold lead-in to a colon.
      I need to select the text after the colon (and everything in between) to the return.
      So I need to highlight the text after the colon (The City of Canton is..(plus everything else to the return. \r.
      Skip the next line until after the colon again, and repeat.

      I have to change the font after the colon to the return, and keep the format at the beginning of the next text line until the colon again.

      Plus, I need to go from the beginning of the story with is the same bold text.
      Hope this makes sense.
      Thanks for any help/advice offered.

      Text Here: The City of Canton is holding its annual Arbor Day plant sale Feb. 16 from 9 a.m. to 5 p.m. in Cannon Park in downtown Canton, 130 East Main Street. People can shop for plants, shrubs and fruit frees, and pick up a free seedling of plants including Virginia Pine, Sawtooth Oak, Crabapple, Persimmon, Crepe Myrtle, Dogwood, Redbud, Catalpa, Red Maple and Red Cedar at the event. Plant sales will go toward beautification projects of the Canton Tree Commission.
      More Text: Persimmon, Crepe Myrtle, Dogwood, Redbud, Catalpa, Red Maple and Red Cedar at the event. Plant sales will go toward beautification projects of the Canton Tree Commission.

    • #101791

      I believe your issue can be remedied by using Nested Styles.
      First, define a Character style for the portion of the paragraph that will be unique from the rest of the paragraph (in your case “Text Here:) Then, create a Paragraph style that will be used for the text following “Text Here:”.
      Once these styles are defined, choose Drop Caps and Nested Styles in the Paragraph Style Options panel. Create a New Nested Style, choose the newly created Character Style, select “through”, “1”, “End Character Nested Style”.
      Return to your document and apply this paragraph style. After each “:”, insert a “End Nested Style Here” (Insert Special Character, Other, end Nested Style Here). NOTE: Until you insert the End Character Nested Style, the entire paragraph will reflect the character style.
      If you have multiple occurrences, I would assign a key command or do a search and replace of “Text Here:” inserting the End Character Nested Style in the replace area.
      Hope this is an answer to your problem.

    • #101797
      Larry Pitts
      Member

      Thanks for the recommendation, Janet…but multiple designers will need these Nested Styles, so I’m not sure if those can be transferred to different workstations.

      I’ve created several find/change commands, though, that I can string together using XStrings, and that seems to work great.
      So I was hoping to get a find/change command to select the text between the colon and the return.
      Then I can change the font to whatever I need.

      Thanks again for your help.
      I appreciate your advice and help.

    • #101870

      (?-s)^.+?:\h\K.+\r?

      Best,

      Michel, from FRIdNGE
      [email protected]

    • #102108
      Larry Pitts
      Member

      Thanks, so much Michel.
      This works great.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo