Skip to content
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

SRE: (?flag:...) is not supported #34625

Closed
effbot mannequin opened this issue Jun 14, 2001 · 8 comments
Closed

SRE: (?flag:...) is not supported #34625

effbot mannequin opened this issue Jun 14, 2001 · 8 comments
Assignees
Labels
topic-regex type-feature A feature request or enhancement

Comments

@effbot
Copy link
Mannequin

effbot mannequin commented Jun 14, 2001

BPO 433028
Nosy @ezio-melotti, @serhiy-storchaka
Dependencies
  • bpo-22364: Improve some re error messages using regex for hints
  • Files
  • re_scoped_flags.diff
  • re_scoped_flags_2.patch
  • re_scoped_flags_3.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2016-09-11.08:06:42.309>
    created_at = <Date 2001-06-14.08:28:31.000>
    labels = ['expert-regex', 'type-feature']
    title = 'SRE: (?flag:...) is not supported'
    updated_at = <Date 2016-09-11.08:06:42.308>
    user = 'https://bugs.python.org/effbot'

    bugs.python.org fields:

    activity = <Date 2016-09-11.08:06:42.308>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2016-09-11.08:06:42.309>
    closer = 'serhiy.storchaka'
    components = ['Regular Expressions']
    creation = <Date 2001-06-14.08:28:31.000>
    creator = 'effbot'
    dependencies = ['22364']
    files = ['38296', '38693', '44439']
    hgrepos = []
    issue_num = 433028
    keywords = ['patch']
    message_count = 8.0
    messages = ['53162', '73687', '230849', '237026', '239281', '274817', '275467', '275742']
    nosy_count = 6.0
    nosy_names = ['effbot', 'timehorse', 'ezio.melotti', 'mrabarnett', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue433028'
    versions = ['Python 3.6']

    @effbot
    Copy link
    Mannequin Author

    effbot mannequin commented Jun 14, 2001

    from the jeffrey friedl report:

    (?flag:...) and (?-flag:...) are not supported.
    They'd be nice.

    @effbot effbot mannequin self-assigned this Jun 14, 2001
    @effbot effbot mannequin added topic-regex type-feature A feature request or enhancement labels Jun 14, 2001
    @mrabarnett
    Copy link
    Mannequin

    mrabarnett mannequin commented Sep 24, 2008

    Implemented in bpo-3825.

    @serhiy-storchaka
    Copy link
    Member

    I agree that they'd be nice. The regex module is too advanced and need much work and some transitional period for including in the stdlib, but this feature can be implemented right now.

    @serhiy-storchaka
    Copy link
    Member

    Here is preliminary patch.

    @serhiy-storchaka
    Copy link
    Member

    Updated to the tip.

    Could anyone please help with documentation?

    @serhiy-storchaka
    Copy link
    Member

    Fixed generating info for fast search for groups with local flags and added some documentation (would appreciate for improving it).

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 9, 2016

    New changeset ce5a834978ac by Serhiy Storchaka in branch 'default':
    Issue bpo-433028: Added support of modifier spans in regular expressions.
    https://hg.python.org/cpython/rev/ce5a834978ac

    @serhiy-storchaka
    Copy link
    Member

    There was one bug (bpo-28070), it is now fixed.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-regex type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants