Rob Dixon <[EMAIL PROTECTED]> wrote: : : Deb wrote: : > : > I'm having trouble coming up with a regular : > expression for $lines in @lines of this form: : > : > units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] : > units = [EMAIL PROTECTED] : > units = [EMAIL PROTECTED] [EMAIL PROTECTED] : : Hi Deb. : : Here's the way I'd do it. First check that the line : starts with 'units' - whitespace - '=' - whitespace : and strip it off in one statement. Then you seem to : be left with a number of emails which are separated : by any of colon, semicolon or whitespace, so just : split on a regex which says just that and rejoin the : list with commas. [snipped code]
Holy Cow! Deb, I apologize. After reading Rob's answer, I re-read your message and I can't believe I couldn't understand what was in @lines. Perhaps I should stop hitting reply so quickly. Sorry, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]