Re: trimming multiline strings
Adriano Rodrigues Ferreira wrote: > > My problem is: > > Given a (multiline) string, I want a function which remove all leading and trailing > white-space (as given by \s). > > Examples: > " abbds \n sass " => "abbds \n sass" > "a "
trimming multiline strings
My problem is: Given a (multiline) string, I want a function which remove all leading and trailing white-space (as given by \s). Examples: " abbds \n sass " => "abbds \n sass" "a " => "a" " \n first phrase \n second ph