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

Lookaheads and Lookbehinds

Lesson 1 of 7 - Advanced Regex

Lesson Progress0/4
25 minutes
Advanced

1
Positive Lookaheads (?=)

Theory

Positive lookaheads check that something follows the current position without including it in the match. The pattern inside (?=...) must match but isn't consumed.

Example

/hello(?= world)/ matches "hello" only when followed by " world"

Practical Understanding

Use lookaheads to validate conditions without including them in your match result.