-
Notifications
You must be signed in to change notification settings - Fork 476
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
error: look-behind requires fixed-width pattern #5970
Comments
Just wanted to add that I'm using the Python version |
Hi, But I am getting the same error on install, so maybe either some new in python invalid regex were added in the last versions or it maybe has issues with python3. |
You need to install |
thanks @Findus23 for looking into it. I'll close the issue for now. |
i tried pip install regex, it still didn't work! For context, I'm on a Mac OS X |
Hi @sgiehl , we are maintaining a ruby version of the device detector at https://github.com/podigee/device_detector and noticed that one regular expression is not available in Ruby: there is no support for non-fixed-width look-behinds, see https://github.com/kkos/oniguruma/blob/master/doc/RE#L283-L290 for details. For now we got rid of this violation and removed some test ( podigee/device_detector@e87bad0 ). Do you see a way to rewrite this Regex? |
But https://github.com/kkos/oniguruma/blob/master/doc/RE#L283-L290 says
So i don't understand why |
Thanks for the response. I apologise for the trouble but I was mislead by the error message. The regex is actually not the problem. This seems to be a bug in ruby https://bugs.ruby-lang.org/issues/13671 / or library Onigmo, see k-takata/Onigmo#92 . It occurs in combination with
I think there is nothing to be done on your side. 👍 |
ok. Thanks for the feedback. Let me know if anything else needs to be adjusted... |
I keep getting this error when i try to use this library. I installed python3-dev, python3-pip and regex but that doesn't seem to fix it! Any ideas what's wrong?
The text was updated successfully, but these errors were encountered: