天天看点

搜索字符串

% vi textfile

Unusual occurrences happened at the fair.

Patty won fourth place in the 50 yard dash square and fair.

Occurences like this are rare.

The winning ticket is 55222.

The ticket I got is 54333 and Dee got 55544.

Guy fell down while running around  the south bend in his last event.

/\<f.*th\>/

需要在每一行中搜索的字符串是这样的:以字母f开始,紧跟着0个或者多个任意字符(.*).最终以th结束。

继续阅读