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


in reply to Re: Anagrams & Letter Banks
in thread Anagrams & Letter Banks

Thank you, tybalt89. It's nice to see this regex solution as well as the hash solution offered earlier. I was just reading about backreferences, and again it makes sense to me in principle, but the details remain opaque. What do the parentheses in (.) accomplish? And how does the backreference determine if something has been seen again?