Skip to content

re.sub() replaces only several matches #56287

Description

@arysin
mannequin
BPO 12078
Nosy @ezio-melotti
Superseder
  • bpo-11957: re.sub confusion between count and flags args
  • Files
  • repl.sh: sed replace which works
  • repl.py: Python replace which does not work
  • test.txt: Text to replace
  • 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 2011-05-14.21:49:39.374>
    created_at = <Date 2011-05-14.15:04:53.100>
    labels = ['expert-regex']
    title = 're.sub() replaces only several matches'
    updated_at = <Date 2011-05-14.22:13:00.721>
    user = 'https://bugs.python.org/arysin'

    bugs.python.org fields:

    activity = <Date 2011-05-14.22:13:00.721>
    actor = 'arysin'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-05-14.21:49:39.374>
    closer = 'ezio.melotti'
    components = ['Regular Expressions']
    creation = <Date 2011-05-14.15:04:53.100>
    creator = 'arysin'
    dependencies = []
    files = ['21999', '22000', '22001']
    hgrepos = []
    issue_num = 12078
    keywords = []
    message_count = 4.0
    messages = ['135975', '135980', '135992', '135995']
    nosy_count = 3.0
    nosy_names = ['ezio.melotti', 'mrabarnett', 'arysin']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '11957'
    type = None
    url = 'https://bugs.python.org/issue12078'
    versions = ['Python 3.1']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions