Fixing regex so that multiple selectors inside of a method do not break selection recursion.