Revert "split step1_2() into 3 funcs". because its not correct

This reverts commit 40266623ce91de7cea867e0bc4290e4ce178da9f.
fix wrong order in assert
rewrite checking of r2 region because re:run() works incorrect with utf8