Detectors
Phone Number (DE)
Detect German phone numbers with +49 prefix support.
Purpose
Use the phone detector (region de) for German phone numbers.
This detector uses pattern matching with German phone number format validation.
Detector Name
phoneRegion: de
Supported Formats
+49 XXX XXXXXXX0XXX XXXXXXX+49XXXXXXXXXXX- German area codes (Vorwahl) with landline and mobile patterns
German mobile numbers start with 015x, 016x, 017x.
Usage
from fastpii import FastPII, DEFAULT_PRIORITY
from fastpii.countries.de import GermanPack
engine = FastPII(priority=DEFAULT_PRIORITY)
engine.register(GermanPack())
result = engine.detect("Telefon: +49 170 1234567")Validation
result = engine.validate("+49 170 1234567", "phone")
# result.is_valid → True