___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";} }
Perl Regex: non-captured parentheses
最新推荐文章于 2024-08-12 17:37:54 发布
___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";} }