Reply To: GREP query to find first space of a given paragraph style

Home Page / Forums / General InDesign Topics (CLOSED) / GREP query to find first space of a given paragraph style / Reply To: GREP query to find first space of a given paragraph style

#14323579
David Blatner
Keymaster

Great question… sorry, I should have done that. Was typing too quickly. :-)

  • The stuff in the parentheses is the stuff you want to keep.
  • \d means “any digit”
  • the stuff in the brackets means “any one of these things”
  • the +? means “one or more of these”
  • means “any space”

So the result is “find a digit, followed by one or more digts-or-dots, followed by any space… then replace it with the numbers and dots, followed by an em dash and an indent-to-here character.”

This article was last modified on December 11, 2019

Comments (0)

Loading comments...