It's simple enough to put a string into an array using split() ... but that's if you've got something to split on ... like say a space or a "," ... or even a word boundry. But what do you do when all you've got is a string of characters ... say a long DNA sequence something like ... AGTCGTCGATGCTGATGCTAGCCCC ... ? i was looking for a "letter boundry" type of anchor (something similar to word boundry - \b), but couldn't find one. Did i miss something? If not, how do i split this string into an array (one letter for each element in the array)?
thanks,
chris
In reply to String into Array by cdherold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |