added scan and word regex example