匹配前面不是空格的 abc

my $str = "     abc" ;
print "\a"  if   $str =~  /(?!=\s+)abc/ ;

怎么会匹配成功呢 ?


另外:
print "\a"  if   $str =~  /(?<=\s+)abc/ ;

怎么出现编译错误: Variable length lookbehind not implemented in regex; marked by <--
HERE in m/(?<=\s+)abc <-- HERE / at test_xiong.pl line 6.


-- 
            Yours Sincerely
                    Zeng Hong

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

回复