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

Named Capture Groups

Advanced Regex - Lesson 3

18 min
Progress0/3

Named Capture Groups Syntax

Concept

Named capture groups use (?<name>pattern) syntax. They make regex more readable and maintainable by giving groups meaningful names.

Example

(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})
Matches dates and names the parts: year, month, day

Practical Application

Use descriptive names to make complex patterns self-documenting