* On 2009-06-24 at 14:40 +0200 Ulf Wiger wrote: > BTW, regarding the trimming of binaries, perhaps someone > with more regexp skill could improve on this: > > 1> re:split(<<" \tabc\t ">>, "[(^\\h*)(\\h$)]",[trim]). > [<<>>,<<>>,<<>>,<<"abc">>] Perhaps: trimre(Bin) -> re:replace(Bin, "^\\s+|\\s+$", "", [{return, binary}, global]). + seth