阅读背景:

文本在指定长度后分割但不会使用grails中断单词

来源:互联网 

I have a long string that I need to parse into an array of strings that do not exceed 50 characters in length. The tricky part of this for me is making sure that the regex finds the last whitespace before 50 characters to make a clean break between strings since I don't want words cut off.I have a long string that I need to parse into




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: