i know that regex on postal address cannot be optimal, but i really one here .
I explain my problem : I got different types of postal address :
32 Rue Jean Jaures 69000 Lyon
Bâtiment 1 32 Rue Jean Jaures 69000 Lyon
32 B Jean Jaures 69000 Lyon
Bâtiment 1 32 B Rue Jean Jaures 69000 Lyon
I need a regexp to find only the number of the street in any position.
I have done a regexp which permit to determine the number if it is at the beginning of the string :
`^([1-9][0-9]{0,2}(?:\s*[A-Z])?)\b`
You can see the result here : https://regex101.com/r/dY7cE6/3
But the problem is that i can't find it if it's not the first number of my string (like this address : Bâtiment 1 32 Rue Jean Jaures 69000 Lyon)
So i ask you help to find in any situation this street's number wich is here "32".
I keep search on my own but help will be appreciate .
Thank you .