
BillKSmith
Veteran
Oct 9, 2012, 8:40 AM
Post #2 of 3
(1090 views)
|
|
Re: [prashant] Joining two strings by matching positions of alphabet in both strings
[In reply to]
|
Can't Post
|
|
Your code has several problems. Your attempt to accept multi-line user input will not work. I recommend that you limit the input to one line. (You can generalize it later if needed) The way you split the string loses all the E's. Use a "zero-width positive lookbehind assertion" in your regular expression. I have not yet worked out how to form the output. I think it involves pushing array references into a buffer in the correct order. I will get back to you later on this. Good Luck, Bill
|