Skip to content

Replacement of re with the regex package #72647

Closed

Description

@pnugues
mannequin
BPO 28461
Nosy @ezio-melotti, @serhiy-storchaka
Superseder
  • bpo-2636: Adding a new regex module (compatible with re)
  • 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 = None
    closed_at = <Date 2016-10-17.13:32:52.979>
    created_at = <Date 2016-10-17.13:20:48.180>
    labels = ['expert-regex', 'type-feature']
    title = 'Replacement of re with the regex package'
    updated_at = <Date 2016-10-17.13:32:52.972>
    user = 'https://bugs.python.org/pnugues'

    bugs.python.org fields:

    activity = <Date 2016-10-17.13:32:52.972>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-10-17.13:32:52.979>
    closer = 'serhiy.storchaka'
    components = ['Regular Expressions']
    creation = <Date 2016-10-17.13:20:48.180>
    creator = 'pnugues'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 28461
    keywords = []
    message_count = 2.0
    messages = ['278806', '278808']
    nosy_count = 4.0
    nosy_names = ['ezio.melotti', 'mrabarnett', 'serhiy.storchaka', 'pnugues']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '2636'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue28461'
    versions = ['Python 3.6']

    Activity

    1. pnugues commented on Oct 17, 2016

      pnuguesmannequin
      MannequinAuthor

      I am using Unicode regexes in the form of properties: \p{} and these are not standard in the re module. I have to use the new regex module, which has to be installed separately.

      I would like to see the replacement of re with regex in the future Python versions. I was not sure where to post my request and I used this bug tracker with the enhancement category. I hope this is not a mistake.

    2. serhiy-storchaka commented on Oct 17, 2016

      @serhiy-storchaka
      Member

      See bpo-12734 for adding the support of properties in re.

      See bpo-2636 for replacing re with regex.

      See bpo-22594 for encouraging the use of regex.

    3. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions