View Single Post
  #1 (permalink)  
Old Apr 25th, 2008, 22:20
ktsirig ktsirig is offline
Up'n'Coming Member
Join Date: Sep 2005
Location: athens
Age: 26
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
group similar data in a string?

Hello all
I didn't know a good way of naming my question, so I am getting straight to the point:
I have a string like the following:
Code: Select all
-----MMMMM------IIIII----MMM---OOOO---I---MMMM-----
Is there any way I can gather and group my information and get, for example:
Code: Select all
6-10:M
17-21:I
26-28:M
32-35:O
39:I
43-46:M
Thank you in advance.
Reply With Quote