On Jan 7, Scott said: >At 04:04 PM 1/7/2002 -0500, Jeff 'japhy' Pinyan wrote: >>No, the [...] is needed. Otherwise, you're removing all occurrences of >>the string ".-" which is not what was intended. >> >>So s/[.-]+//g, or perhaps tr/.-//d; > >I might have worded it wrong, I need to replace a period (.) and a dash >(-), they may not be together ie (.-), they could be in any of the >fields in the array. Some of the fields are numbers (5000.00), some are >dates (2002-01-07).
Right, and that was what I said, and that is what the code I have posted does. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]