PracticeDev/study_perl/re/12re.pl

6 lines
102 B
Perl

#!/usr/bin/perl
$txt="ab\ncd";
$txt =~ /a.*\nc/m;
print "===match start===\n$&\n===match end===\n";