+ -
当前位置:首页 → 问答吧 → 弱问:$perl -i.bak -pe 's/\bPHP\b/Perl/g' file.txt 里的\b是神马意思?

弱问:$perl -i.bak -pe 's/\bPHP\b/Perl/g' file.txt 里的\b是神马意思?

时间:2010-11-19

来源:互联网

谢谢!

作者: shot   发布时间: 2010-11-19

perlretut


QUOTE:
An anchor useful in basic regexps is the word anchor \b . This matches a boundary between a word character and a non-word character \w\W or \W\w

作者: zhlong8   发布时间: 2010-11-19