Ed. Added php pattern iterator.