removed note about nesting, recursion works fine with matches, and replaces