Input validation phone number

Input validation phone number

I am trying to find a way to make field constraints for input of a phone number.
Example:
France (country code 33) local number 0142687984 should be input as
33142687984

and not for example
00331 42687984, 0033 (1) 42687984, +33 1 42 68 79 84  etc

basically the number should never start with 0, should not include spaces or signs like + ( ) etc and should have at least 9 digits

I have been trying to find a sample for deluge scripting but no success. Please help