Class | String |
In: |
lib/sup/util.rb
|
Parent: | Object |
nasty multibyte hack for ruby 1.8. if it‘s utf-8, split into chars using the utf8 regex and count those. otherwise, use the byte length.
a very complicated regex found on teh internets to split on commas, unless they occurr within double quotes.
ok, here we do it the hard way. got to have a remainder for purposes of tab-completing full email addresses