How to get re:split to NOT return any empty binaries...

Steve Davis steven.charles.davis@REDACTED
Wed Jul 29 13:26:31 CEST 2009


I've found myself writing...

Result = [X || X = X1 <- re:split(Bin, Regex), X1 =/= <<>>],

..quite a lot.

Is there a way to get split to NOT return empty binaries (trim options
only removes the last one(s))?

Best,
Steve


More information about the erlang-questions mailing list