I am very new in regex manipulation. I am using Python 3.3 in filtering addresses with the module re.
I am wondering why the following regex :
m3 = re.search("[ ,]*[0-9]{1,3}\s{0,1}(/|-|bt.)\s{0,1}[0-9]{1,3} ",Row[3]);
matches string like:
rue de l’hotel des monnaies 49-51 1060Bxl
av Charles Woeste309 bte2 -Bxl
Rue d'Anethan 46 bte 6
Avenue Defré 269/6
but does not match string like (m3 is None):
Avenue Guillaume de Greef,418 bte 343
Joseph Cuylits,24 bte5 Rue Louis
Ernotte 64 bte 3
Rue Saint-Martin 51 bte 7
This really looks like strange to me. All explanation are welcome. Thank you.