Skip to content

regex error : bad escape \w #126

@LeonLenclos

Description

@LeonLenclos

Hello,

With Python 3.7 I have an error when the rive contain a _ (word wildcard).

The error is :
re.error: bad escape \w at position 16

in rivescript/brain.py l448 _ is replaced by a string containing \w

But python 3.7 does not want it :

Deprecated since version 3.5, will be removed in version 3.7: Unknown escapes in repl consisting of '' and an ASCII letter now raise a deprecation warning and will be forbidden in Python 3.7.
(source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions