-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regex error : bad escape \w #126
Comments
Have you found a workaround for this issue? |
It will probably need a code change in rivescript-python. Is the exception raised on this line? rivescript-python/rivescript/brain.py Line 448 in b55c820
regexp = regexp.replace('_', '(\w+?)') It seems from the |
Hi @kirsle ! it's nice to see that you're still active on this project! This is what I found so far
The values causing the error is the variable: Trace log as follow:
|
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 :
The text was updated successfully, but these errors were encountered: