Mega Code Archive
Categories
/
Perl
/
Regular Expression
Shouldnt start a sentence with a period
$line = ".Hello!"; if ($line =~ m/\A\./) { print "Shouldn't start a sentence with a period!"; }