How to make regular expressions work with track changes?
October 31, 2007 9:42 AM Subscribe
How can I make Microsoft Word's Find-and-Replace feature work properly with regular expressions when Track Changes is on?
I'm working on a document containing a significant number of citations with page ranges. Many of those page ranges are separated by hyphens, and I need them to be separated by en dashes instead.
So I'm using Find and Replace with regular expressions like so:
Find what: ([0-9]{1,5})-([0-9]{1,5})
Replace with: \1–\2
Here's the problem: If I run Replace All on the test sentence, "Read pages 35-66, 87-92, & 105-22," I get back "Read pages 35–66, 87–92, & 105–22." Perfect. But if I turn on Track Changes and run it, I get "Read pages 3566–, 8792–, & 10522–." I need these changes to be tracked. Am I doomed to doing them by hand?
I realize how this question looks to people who aren't grammar nerds or law students. Trust me when I say that there is a difference, that the difference matters, and that the changes have to be tracked.
posted by Partial Law to computers & internet (6 answers total)
Also try viewing the resultant document and see how that looks. Sometimes track changes will display strangely. It's somewhat buggy and gets to be too cumbersome when there are heavy revisions.
posted by jcwagner at 10:06 AM on October 31, 2007