I am wondering if there is a GREP which will find a number with an am or pm and add a space between the number between the am or pm?
My contributers to the magazine I typeset keep typing times in as "7pm" for example, our style says it should be "7 pm". Changing these by hand is a pain.
You don't really need the plus sign after the digit.
Interesting choice of the "or" statement, too. My first reaction was to use (\d)([ap]m) which also works, and it probalby would be a good idea to add a work boundary to make it look like (\d)([ap]m\>)
Not quite sure how to add an end of word to your "or".... Maybe (\d)(am\>|pm\>)
I wonder which method runs faster.
Thanks to both of you! Very helpful!!!