TheImrac commented on a Page, [Bot script] Split message if its overlimit  -  Feb 09, 2010

I got bored so I did a regex version =)

just change %n to w/e

alias msg {
  var %n = 40,%c = $1, %m = $2-
  while ($regex(%m,/^(?=.{ $+ %n $+ ,})(.{0, $+ %n $+ })[^$\w](.*)$/)) {
    msg %c $regml(1)
    %m = $regml(2)
  }
  msg %c %m
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.