天天看點

搜尋字元串

% 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結束。

繼續閱讀