It also say says that the s/^\s*(.*?)\s*$/$1/ construct is "unnecessarily slow and destructive". Benchmarks anyone?
See also trim() magic
--
John.
In reply to Re: trim leading & trailing whitespace
by jmcnamara
in thread trim leading & trailing whitespace
by ady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |