We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
see:
git clone https://github.com/axiak/pyre2.git Cloning into 'pyre2'... ... .... (env)Eliyahus-MacBook-Pro:~ eliyahugromman$ cd pyre2/ (env)Eliyahus-MacBook-Pro:pyre2 eliyahugromman$ python setup.py install .... .... (env)Eliyahus-MacBook-Pro:pyre2 eliyahugromman$ pip freeze | grep re2 re2==0.2.23 (env)Eliyahus-MacBook-Pro:pyre2 eliyahugromman$ python Python 2.7.10 (default, Oct 23 2015, 18:05:06) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> import re2 >>> pat = u'^.*?[-]+$' >>> txt = u'''------------------------------------------------------ ... ''' >>> re.match(pat, txt) <_sre.SRE_Match object at 0x101c0e578> >>> re2.match(pat, txt) >>>
According to the docs for re $ matches "the end of the string or just before the newline at the end of the string". It seems re2 doesn't do this
The text was updated successfully, but these errors were encountered:
No branches or pull requests
see:
According to the docs for re $ matches "the end of the string or just before the newline at the end of the string". It seems re2 doesn't do this
The text was updated successfully, but these errors were encountered: