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

Non-capturing Groups

Pattern Matching - Lesson 5

16 min
Progress0/5

Understanding Non-Capturing Groups

Concept

Non-capturing groups (?:pattern) group patterns for operations but don't create numbered capture groups. They save memory and keep group numbering clean.

Example

(?:www\.)? makes "www." optional without capturing it
(?:cat|dog) food groups alternation without capturing

Practical Application

Use when you need grouping for quantifiers or alternation but don't need the matched content