Livejournal
Log in
Post
Friends
My journal
dement1a
Ruby: how to split a string into equal chunks
Jul 14, 2010 17:48
Originally published at
Sara Trice
. You can comment here or
there
.
“some long test string or other”.scan(/.{15}/)
Snagged from
http://snippets.dzone.com/posts/show/5621
and posted here so I can find it later.
tech
Leave a comment
Previous post
Next post
Up