Mega Code Archive
Categories
/
Perl
/
Language Basics
Prematch
$text = 'earlynowlate'; $text =~ /now/; print "Prematch: \"$`\" Match: \"$&\" Postmatch: \"$'\"\n";