On Tue, Jul 11, 2000 at 11:20:15AM +1000, Rick Welykochy wrote:
> Note that vi like perl is a smarty pants.
> A $ is only interpreted as a line end if
> it is the last char in the pattern.
err.. thats the way its supposed to be (for basic regex's)
position is also important with other characters, like
^string / stri^ng
[^chars] / [cha^rs]
[a-z] / [-az]
[abc] / []abc]
. / [.] (or many other special characters)
etc
tho in extended regex's, the rules are completely different ;)
as regex(7) says:
BUGS
Having two kinds of REs is a botch.
hey, i just learnt about collating elements:
[^[.abc.]] is the same as [^a][^b][^c] (ie: `not "abc"')
--
- Gus
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug