r/inventwithpython • u/SharkHasFangs • Feb 03 '20
Chapter 8 error module 're' has no attribute 'Pattern'
Hi,
I'm working my way through Automate the boring stuff and when trying the allowRegexes and blockRegexes parameters in the input validation sections I get the following error;
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>> import pyinputplus as pyip
>>> import re
>>> response = pyip.inputNum(allowRegexes=[r'(I|V|X|L|C|D|M)+',r'zero'])
X
module 're' has no attribute 'Pattern'Is this an issue with the version of python?
Thanks in advance!
3
Upvotes
Duplicates
learnprogramming • u/SharkHasFangs • Feb 03 '20
Chapter 8 error module 're' has no attribute 'Pattern'
1
Upvotes