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

Backreferences

Advanced Regex - Lesson 2

20 min
Progress0/5

Understanding Backreferences

Concept

Backreferences allow you to refer to previously captured groups within the same pattern. \1 refers to the first group, \2 to the second, etc.

Example

(\w+)\s+\1 matches repeated words like "the the"
(["']).+?\1 matches quoted strings with matching quotes

Practical Application

Perfect for finding duplicated content, matching pairs, and ensuring consistency