write regex to match anagrams; still need to store matches in variable