re behaving strangely

Discussion in 'Python' started by Josh Close, Jun 9, 2005.

  1. Josh Close

    Josh Close Guest

    This is not returning a match

    re.compile( r'b' ).search( 'back', re.I )

    Anyone know why this is?
     
    Josh Close, Jun 9, 2005
    #1
    1. Advertisements

  2. Josh Close

    Peter Hansen Guest

    <_sre.SRE_Match object at 0x00AF3DB0>

    :)

    -Peter
     
    Peter Hansen, Jun 9, 2005
    #2
    1. Advertisements

  3. Josh Close

    Josh Close Guest

    Thanks for pointing out my utter stupidity :)

    It's been a long day.

    -Josh
     
    Josh Close, Jun 9, 2005
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.