新手有两个正则表达式看不懂,请高手解释 1. $string=~ s/\<[^\<]+\>/ /g 2. $string=~ s/[^a-z\-\']/ /g 其匹配的模式是什么,举几个例子看看 ^在中括号内是表否定么?(不是字符开头?)
_________________________________________________________________ MSN新版在线社交网络,与您的MSN好友更全面互动! http://im.live.cn/msn9/ --~--~---------~--~----~------------~-------~--~----~ 您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。 要在此论坛发帖,请发电子邮件到 [email protected] 要退订此论坛,请发邮件至 [email protected] 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛 -~----------~----~----~----~------~----~------~--~---
