in reply to Line trimming regex doesn't work as expected

"trim" is a really poor name for a function that inserts tabs into a string. I'd name it "add_tabs" or something.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart