FastPII Docs
Detectors

Phone Number (FR)

Detect French phone numbers with +33 prefix support.

Purpose

Use the phone detector (region fr) for French phone numbers.

This detector uses pattern matching with French phone number format validation.

Detector Name

phone

Region: fr

Supported Formats

  • +33 X XX XX XX XX
  • 0X XX XX XX XX
  • +33XXXXXXXX
  • French mobile numbers start with 06 or 07

French phone numbers are 10 digits when dialed domestically.

Usage

from fastpii import FastPII, DEFAULT_PRIORITY
from fastpii.countries.fr import FrenchPack

engine = FastPII(priority=DEFAULT_PRIORITY)
engine.register(FrenchPack())

result = engine.detect("Telephone: +33 6 12 34 56 78")

Validation

result = engine.validate("+33 6 12 34 56 78", "phone")
# result.is_valid → True

On this page