Update re module and test for stream mode.