|
发表于 2010-8-10 23:07:49
|
显示全部楼层
没什么,只不过因为要匹配的字符里含有符号“/”
所以就用换成#号了,换成别的也可以,没有限制: The syntax of the `s' (as in substitute) command is
`s/REGEXP/REPLACEMENT/FLAGS'. The `/' characters may be uniformly
replaced by any other single character within any given `s' command. /\?就是匹配0个或一个/ |
|