http://samlib.ru/editors/a/afanasiev_a_w/spastisssr.shtml Проды будут здесь. Регулярность - как получится.