perl 正则表达式示例代码
代码语言:perl
所属分类:其他
代码描述:perl 正则表达式示例代码
代码标签: 示例
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
#!/usr/bin/perl $bar = "This is foo and again foo"; if ($bar =~ m[foo]) { print "First time is matching\n"; } else { print "First time is not matching\n"; } $bar = "foo"; if ($bar =~ m{foo}) { print "Second time is match.........完整代码请登录后点击上方下载按钮下载查看
网友评论0