Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# emulates "nrmwyoldrmtob".scan(/.{1,5}/)
# encodes 5 char words and then some
class A
@replace = (str)->
str.match(/[a-z|0-9]{5}|[\w]+/ig).join(" ")
test= A.replace("nrmwyoldrmtob")
console.log(test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment