Detectors
Phone Number (PL)
Detect Polish phone numbers with +48 prefix support.
Purpose
Use the phone detector (region pl) for Polish phone numbers.
This detector uses pattern matching with Polish phone number format validation.
Detector Name
phoneRegion: pl
Supported Formats
+48 XXX XXX XXXXXX XXX XXX+48XXXXXXXXXXXXXXXXXX
Polish mobile numbers start with digits 5, 6, 7, 8, or 9.
Usage
from fastpii import FastPII, DEFAULT_PRIORITY
from fastpii.countries.pl import PolishPack
engine = FastPII(priority=DEFAULT_PRIORITY)
engine.register(PolishPack())
result = engine.detect("Telefon: +48 512 345 678")Validation
result = engine.validate("+48 512 345 678", "phone")
# result.is_valid → True