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
Inline python re modifiers not working #1698
Comments
This is a longer standing issue, the website caters for Python 2.7, which is very outdated at this point. I will have to rework it completely to support Python 3+ ASAP. |
In this context it is probably worth mentioning that all official support for Python 2.x ended 01/01/2020. |
@SteveBarnes-BH Is there a writeup somewhere outlining the regex differences between 2.7 and 3.x? |
https://docs.python.org/3/library/re.html has:
The How To is a useful resource as well. There is also the significant difference that you can have string, (i.e. Unicode), or byte regular expressions and also targets and that the 2 don't mix, i.e. re.findall("Fred", b"Fred") will cause a error, ( |
@firasdib have you managed to make any progress on this issue? Either way, the name of the "Python" flavor should probably be "Python 2.7", to make sure users understand that Python 3 syntax is not supported. |
I would agree with the statement that you should make it very clear that this is python 2.7. I removed the rest of this because the issue was that I was not using raw strings and the |
Bug Description
The regex
#define\s+(?i:CONFIGXML_HEADER)
reports:
However, it is a valid regular expression in python 3.9 and possibly others meaning that I need
#define
as case sensitive butCONFIGXML_HEADER
case insensitive.Reproduction steps
Paste the above regex into the regex field on the site.
Expected Outcome
Partially case sensitive regex.
Browser
Chrome
OS
Windows 10
The text was updated successfully, but these errors were encountered: