Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split string after x characters? 5

Status
Not open for further replies.

ale1981

IS-IT--Management
Oct 1, 2007
26
GB
I would like to split a string if it is over x characters long after x amount of characters, is this possible? for example;

string = "this is one long line of text"

string1 = "this is one long line"
string2 = "of text"

the split can not split in the middle of words.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top