Regex does not match but seems to be correct
Question: I have a very weird problem:

Using the same regex matches in several online services, but not in my local
python 3.3 instance.

    
    
    re.search("ajaxHandler\('(?P<fp>[A-Z0-9]+)",rawdata).group("fp")
    

where rawdata is

    
    
    <select name="F4542661421192HPAUS" onchange="liftAjax.lift_ajaxHandler('F4542661421185WLRZY=' + encodeURIComponent(this.value), null, null, null)">[... blabla ...]</select>
    

Any idea what's going wrong?


Answer: I can't reproduce this:

    
    
    Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AM
    D64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import re
    >>> rawdata="""<select name="F4542661421192HPAUS" onchange="liftAjax.lift_ajaxHandler('F4542661421185WLRZY=' + encodeURIComponent(this.value), null, null, null)">[... blabla ...]</select>"""
    >>> re.search("ajaxHandler\('(?P<fp>[A-Z0-9]+)",rawdata).group("fp")
    'F4542661421185WLRZY'
    

