#! perl use strict; my $str = "if a; if a and b; if a; if a and b;"; if ( $str =~ /((\s+)?if\s+\w+(\s+and\s+\w+)(.*?)){2}/s ) { print $str; }
37,743
社区成员
34,212
社区内容
加载中
试试用AI创作助手写篇文章吧