Concurrent future...
Tuesday, March 24, 2009
string:tokens/2 does not handle empty tokens
string:tokens("A,,,,,", ",") returns ["A"] where as I expect it to return ["A", "", "", "", ""]. This can be solved using regexp:split function.
regexp:split("A,,,,,", ",") returns ["A", [], [], [], []]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Book Promotion
No comments:
Post a Comment