Python 3 Regex Issue
Question: Why does the following `string1` regexp not match? I have tested it using
[this](https://regex101.com/ "this") and it appears my regex-fu is accurate,
so I figure I must be missing something in the python implementation:

    
    
    import re
    pattern = r".*W([0-9]+(\.5)?)[^\.]?.*$"
    string1 = '6013-SFR6W4.5'
    string2 = '6013-SFR6W4.5L'
    print(re.match(pattern, string1)) # the return value is None
    print(re.match(pattern, string2)) # this returns a re.match object
    

[Here](http://imgur.com/gWn1XnE "here") is a screenshot of an interactive
session showing this issue.

**EDIT**

sys.version outputs 3.4.3


Answer: When I run the code you provided, I get return values on both:

    
    
    $ python3 test.py
    <_sre.SRE_Match object at 0x6ffffedc3e8>
    <_sre.SRE_Match object at 0x6ffffedc3e8>
    

