2009年4月9日星期四

[PerlChina] Re: 请问在Perl中,正则表达式中的\1 、\2 、\3是什么意思

正则匹配模式里面的第一个分组捕获()对应 \1
依此类推,看看 perldoc perlre 好了。

2009/4/9 MrLiu <submox@gmail.com>
在Learn Perl 4th中没有这方面的介绍,5th中到是有,但没看明白



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

-~----------~----~----~----~------~----~------~--~---

没有评论: