summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L34.2e
blob: 681a3c6ea82516aafcbf3f5b7dcd0e88ea9291e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#print
Suppose you wanted to match all letters and
punctuation marks.  You could try
 [^ ]
which is "anything but blank".
Try the following commands:

ed cut
1p
1s/p[^ ]/xxx/p
w
q
ready
#create Ref
stop this comxxxter
#create cut
stop this computer
#user
#cmp cut Ref
#log
#next
34.2f 5