This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Thanks Ernest. That did the trick. And it helped me with some others I had to create as well. The best part was the worded explination of the regex. That made difference in me understanding it. [ November 09, 2005: Message edited by: Pat Denton ]
Feh. Regular expressions can be ugly, so comments certainly help. One thing in their favor is if the shell script gets turned into a Perl, Ruby, or Python program, or recoded in Java, the regexp can go along for a ride; the other techniques would require a total rewrite.