🐪 Perl Regular Expressions (regex)

Regex is one of Perl's strongest weapons. Pattern matching is baked into the language with the =~ operator and regex literals //.

🖥️ Example 1: Simple Match

Output will appear here...

🖥️ Example 2: Match with Capture Group

Output will appear here...

🖥️ Example 3: Substitution

Output will appear here...
💡 Tip: Capture groups in Perl are accessed via $1, $2, etc., based on order.