http://qs321.pair.com?node_id=1161950


in reply to Re^3: Comparing Lines within a Word List
in thread Comparing Lines within a Word List

Thanks hippo, I will give this a shot. I'm reading the documentation on the /g modifier but do not see yet how this will work.

If the issue was that there were two a's in 'lama', what does it mean that when I ran the original code, 'aaron' successfully matched 'baron' as it should have? Guessing it's to do with the fact that in this latter case, the repeated instance of 'a' comes after rather than before the a/b swap position, unlike 'lama' and 'lamb'. How this plays into the regex though, I don't yet see.