From: Brian Candler Date: 2012-04-26T06:38:58+09:00 Subject: Re: matching substrings Ok Ok wrote in post #1058374: > I do understand. I have that part done, but it doesn't help me to figure > out what code will accomplish what I am thinking. So, post the list of steps you have come up with here. "This is what I would do if solving this problem with pencil and paper: step 1: .... step 2: .... step 3: .... etc" Then we can talk about how to put those steps into code. Actually writing it down, rather than just thinking about it, *does* make a huge difference. -- Posted via http://www.ruby-forum.com/.