|
|
1.1 root 1: #print
2: The '*' character is also used in the editor patterns (the regular
3: expressions) but it has quite a different meaning from '*'
4: as used in filenames. In the editor it means "any
5: number of repetitions of the previous character." Thus
6: a*
7: might match "a" or "aa" or "aaa" or "aaaa" and so on.
8: It might also match nothing, because "any number
9: of repetitions" includes "zero"! Perhaps it
10: will be clearer after you do the following example.
11: Note what happens to the two lines. Type
12:
13: ex file
14: 1,2p
15: 1s/xa*/xy/
16: 2s/xa*/xy/
17: 1,2p
18: wq
19: ready
20: #create Ref
21: abxy
22: abxycd
23: #create file
24: abxaaa
25: abxcd
26: #user
27: #cmp file Ref
28: #log
29: #next
30: 35.2b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.