Re: How to search for substrings of a string in a list?

2006-06-05 Thread Christoph Zwerschke
Girish Sahani schrieb: > Given a length k string,i want to search for 2 substrings (overlap > possible) in a list consisting of length k-1 strings. These 2 substrings > when 'united' give the original string. > e.g given 'abc' i want to search in the list of 2-length strings > ['ab',ac','cd','bc','

How to search for substrings of a string in a list?

2006-06-05 Thread Girish Sahani
Given a length k string,i want to search for 2 substrings (overlap possible) in a list consisting of length k-1 strings. These 2 substrings when 'united' give the original string. e.g given 'abc' i want to search in the list of 2-length strings ['ab',ac','cd','bc','bd'] to extract either 1) 'ab an