diff --git a/parsimonious/expressions.py b/parsimonious/expressions.py index eba983b..0679527 100644 --- a/parsimonious/expressions.py +++ b/parsimonious/expressions.py @@ -7,7 +7,7 @@ # anything--for speed. And kill all the dots. from inspect import getfullargspec, isfunction, ismethod, ismethoddescriptor -import re +import regex as re from parsimonious.exceptions import ParseError, IncompleteParseError from parsimonious.nodes import Node, RegexNode diff --git a/setup.py b/setup.py index f2e2ab5..89b9ce8 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ test_suite='tests', url='https://github.com/erikrose/parsimonious', include_package_data=True, + install_requires=['regex>=2022.3.15'], classifiers=[ 'Intended Audience :: Developers', 'Natural Language :: English',