Reply To: GREP with hyphens with various numbers

Home Page / Forums / General InDesign Topics (CLOSED) / GREP with hyphens with various numbers / Reply To: GREP with hyphens with various numbers

#55159
Cindy Kelley
Participant

thank you so much. your explanation of what each expression defines is very helpful.

Although your solution worked for what I requested (I did put in the backslashes), I realize now that I didn't give you enough information.

I am wanting to take the text:

Figure 1-1: Photo was taken with a Canon EOS 1D Mark III Camera, 70 – 200 mm lens at 145mm, 1/320 sec, f/4.5 and ISO 200, in manual exposure mode.

or

Figure 1-1: Photo was taken with a Canon EOS 1D Mark III Camera, 70 – 200 mm lens at 145mm, 1/320 sec, f/4.5 and ISO 200, in manual exposure mode.

and convert it to

Figure 1-1: Photo was taken with a Canon EOS 1D Mark III Camera, 70–200mm lens at 145mm, 1/320 sec, f/4.5 and ISO 200, in manual exposure mode.

With your solution, I was getting all instances of any number with a mm following the number and not necessarily containing a hyphen or it was finding the numbers following the word Figure (i.e. Figure 1-1:)

I tried messing around with it myself some but I ended up getting 70 – —2mm :)



This article was last modified on March 15, 2010

Comments (0)

Loading comments...