“When I first saw New York I was twenty, and it was summertime, and I got off a DC-7 at the old Idlewild temporary terminal in a new dress which had seemed very smart in Sacramento but seemed less smart already, even in the old Idlewild temporary terminal, and the warm air smelled of mildew and some instinct, programmed by all the movies I had ever seen and all the songs I had ever heard sung and all the stories I had ever read about New York, informed me that it would never be quite the same again.” —Joan Didion, Goodbye to All ThatWe were all taught in elementary school that “a sentence is a complete thought,” and after many years, apparently that’s a lesson worth revisiting. The sentence should keep going until you’ve completed the thought.
0[1-9]meaning a zero followed by a digit from 1 to 9. To do an automated replace, I changed the search string to
0([1-9])and put
\1in the replace field, to indicate that I wanted to replace the search string with the first section of the search string in parentheses. This worked on the first date, but then mistakenly found the zeros in “9:03” and “105.” So I added a test to make sure that my zero is not (indicated by “!”) preceded by a colon or a digit. I also put the text before and after the zero in parentheses so that I could replace the search string with everything except the zero. The final search string:
([!:0-9])0([1-9])And the final replace string:
\1\2