A tiny python style regex engine implement.