sorry, type, should be /first.*second/
-lumlumq(lumlum);
2001-4-10(#43174@0)
don't forget the dot "." before "*"
I suggest you read the man page for regular expressions
man -s5 regex
-lumlumq(lumlum);
2001-4-10(#43177@0)
.(dot)是什么意思?
-guest:guest;
2001-4-10(#43181@0)
dot is a special character in RE
-lumlumq(lumlum);
2001-4-10{148}(#43185@0)
it means "matching for any characters", and "*" is a
special character in RE too, it means "any repetition
of the previous RE(could be 0)"
好使,讲讲什么原理好吗?
-guest:guest;
2001-4-10(#43180@0)
vi supports basic regular expression,
-lumlumq(lumlum);
2001-4-10{232}(#43182@0)
I don't like basic regular expression because it's too limited
you should try out awk or nawk, it's a coooool gadget.
awk and nawk both support extended RE, you can write
very sophisticated text processing programs with them.
.(dot) means any single character or nothing. *(star) means repeat the precedence character.
-pasu(InTheSky);
2001-4-10(#43186@0)