使用 use re debug 查看正则表达式的匹配过程
摘要:复制代码代码如下:#!/usr/bin/perlusestrict;usewarnings;usere'debug';subtest{my$...
复制代码 代码如下:
#!/usr/bin/perl
use strict;
use warnings;
use re 'debug';
sub test {
my $str = "123456789";
print join(":", split /(?<=...)/, $str);
}
test();
【使用 use re debug 查看正则表达式的匹配过程】相关文章:
★ Perl使用Tesseract-OCR实现验证码识别教程
下一篇:
perl中的$a和$b介绍