Perl Regex: non-captured parentheses

___FCKpd___0
= " abc def"; if ( //s+(?:/w+)/s+(/w+)/) { if (defined($1)){ print "capture /$1 = $1";} print "/t"; if (defined($2)){ print "capture /$2 = $2";} }
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页