piighost/uk-phone
United Kingdom phone number, the +44 or leading 0 prefix then nine or ten digits, spaces allowed anywhere. Shape only, so it accepts area codes that were never allocated.
Label: UK_PHONE
Pattern (?<![\w+])(?:\+44[\s.-]?|0)\d(?:[\s.-]?\d){8,9}(?!\w)
Must be caught Call 020 7946 0958 before noon. → 020 7946 0958Switchboard: +44 20 7946 0321 → +44 20 7946 0321
Must be left alone Call 020 7946 now4420794609580
Tags: uk, contact
Download the detector as TOML
Used by
piighost/uk — the United Kingdom: phone, postcode, the National Insurance number, the NHS number and the VAT registration number.
Related patterns
piighost/ar-phone — Argentine phone number, the +54 country code or the 0 trunk prefix then ten or eleven digits.
piighost/ar-postal — Argentine CPA postal code: a province letter, four digits for the town, then three letters for the block side.
piighost/at-phone — Austrian phone number, the +43 country code or the 0 trunk prefix then six to thirteen digits, since Austrian…
piighost/au-phone — Australian phone number: the +61 or leading 0 prefix, a single area or service digit, then eight digits.
piighost/au-postal — Australian postal code, anchored on the state or territory abbreviation that precedes it in an address.
piighost/be-phone — Belgian phone number, the +32 country code or the 0 trunk prefix then eight or nine digits.
← piighost/uk-passport · All patterns in the catalogue · piighost/uk-plate →