Perl Regex Guide

Perl’s regex engine is one of the reasons Perl is still a powerhouse for text processing. This page is a lightweight hub; deep-dives live in individual Q&A pages.

Quick examples

use strict;
use warnings;

	my $s = "Perl 5.38";
	if ($s =~ /perl\\s+(\\d+\\.\\d+)/i) {
	  print "version=$1\\n";
	}

Next steps