📄 l33.2b
字号:
#printYou can of course use the [] operators anywhere ina pattern. Editor patterns, by the way, are called"regular expressions". For example, suppose you wantedto change either the word "trick" or the word "track"to "stop". What command would you need?Do you see that s/tr[ia]ck/stop/pwill do that? Now figure out what command you wouldneed to change either "bear" or "beat" into "best"and print the line after the change.Type "answer COMMAND" where COMMAND is that line.#copyin#user#uncopyin#match s/bea[rt]/best/p#match s/bea[tr]/best/p#match s/bea[rt]/best/You forgot the "p" part.#match s/bea[tr]/best/You forgot the "p" part.#log#next33.2c 5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -