RESOURCE MONITOR
CPU23%
MEMORY67%
DISK I/O45%
NETWORK89%
SYSTEM MONITOR
|
SECURITY LOG
[14:23:45]INFOUser authentication successful
[14:23:47]WARNSuspicious network activity detected
[14:23:50]INFOFirewall rule updated
NETWORK SCAN
Scanning ports: 22, 80, 443, 3389
192.168.1.100 - OPEN
192.168.1.101 - FILTERED
Scan completed: 4/4 ports

Phone Number Parsing

Regex Applications - Lesson 2

18 min
Progress0/3

Phone Number Format Variations

Concept

Phone numbers come in many formats: (555) 123-4567, 555-123-4567, +1-555-123-4567, 5551234567. A good regex handles multiple formats.

Example

(?:\+1[- ]?)?\(?([0-9]{3})\)?[- ]?([0-9]{3})[- ]?([0-9]{4})
Matches most US phone formats

Practical Application

Design flexible patterns that accept user-friendly input formats