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

Word Boundaries and Assertions

Pattern Matching - Lesson 2

18 min
Progress0/5

Word Boundaries (\b) Deep Dive

Concept

Word boundaries match positions between word characters (\w) and non-word characters. They don't consume characters, just mark positions.

Example

\bcat\b matches "cat" in "a cat runs" but not in "concatenate"
\b\d+\b matches whole numbers, not digits within words

Practical Application

Essential for finding complete words, not just character sequences within larger words