Not good regex(?)

Although the `_re_flatten` works well but I think there is something not good. Actually `(?P<>abc)` is not a right regex but it seems `_re_flatten` just treats it like it is right. So I think `+` is better than `*`.