- 論壇徽章:
- 1
|
本帖最后由 lxf1992521 于 2015-03-22 19:21 編輯
rhel5.5 中的 sed 的 info 手冊(cè)中,關(guān)于正則匹配有這么一段話:
`/REGEXP/'
This will select any line which matches the regular expression
REGEXP. If REGEXP itself includes any `/' characters, each must
be escaped by a backslash (`\').
The empty regular expression `//' repeats the last regular
expression match (the same holds if the empty regular expression is
passed to the `s' command). Note that modifiers to regular
expressions are evaluated when the regular expression is compiled,
thus it is invalid to specify them together with the empty regular
expression.
標(biāo)紅的地方,不知道說(shuō)的是什么意思,究竟“//”到底是怎么使用的?
請(qǐng)大神指點(diǎn)! |
|