From: "Aaron D. Gifford" Date: 2012-04-26T06:04:48+09:00 Subject: Re: matching substrings On Wed, Apr 25, 2012 at 2:57 PM, Clay Tzoucalis wrote: > Robert Klemme wrote in post #1058371: >> On Wed, Apr 25, 2012 at 10:36 PM, Clay Tzoucalis >> wrote: >>> I understand that. I am looking more for where to start,in attempt to >>> match the sub strings. This one is just boggling me a little bit. >> >> Think how you would do it on paper and translate the approach into a >> program. >> >> Kind regards >> >> robert > > I also understand this concept. I mean more should I be thinking, array? > if statements? etc? Is there an approach that I should think about when > tackling this. Stop trying to decide things like if statements, arrays, etc. Take Robert's advice. If you were given two strings "abcdefghi" and "qwcderghz", what steps would you do mentally or on a piece of paper to figure out how many matches there were? Break your own mental process down into steps. Then you can worry about translating those steps into code, if statements, or whatever you decide to use. Robert gave you a very good approach to tackle this, but I think you perhaps didn't fully understand his suggestion. Aaron out.