in reply to Re: RegEx needed
in thread Efficient trimming of trailing whitespace from array elements?
s/(\s+)$//;
You can leave out the parentheses. (Unless you need $1, but you don't, in this case)
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|