fix #1: flags argument is missing from ST2. Acually, we don't need re.M