My name is David from France and I need a Regex to comply with the following examples. I need to find datas between parentheses with 5 numbers, space and the name of the town, possibly followed by number of district. Here are some examples of what I need to find :
- (05369 Toussus) OK
- (56236 Ressons le long) OK
- (56236 Ressons-le-long) OK
- (44896 St-Erme-O.&R.) OK
- (89569 amiens /1) OK
- (89569 amiens /1/) OK
- (56236 Ressons le long /2) OK
Here is what I don't want to comply with what I need :
- (454683135 sdf1zg6er5e5z) KO
- (gsdsgfdgsd 4561261) KO
- (16 gsdvgfsvg jythjuyt) KO
I tried to use this regex but that doesn't work:
!\(([0-9]{5}.*[A-Z\-. \&\/].*[\/1-2]{2})\)!
I also tried this one but do not comply with all :
!\(([0-9]{5}.*[A-Z\-. \&\/])\)!
Can I get some help ?
Thank you in advance, David