I am having a disagreement with some people over regular epressions
and I would like
to ask the experts and see what you all have to say.

I have a file called test that looks like the following:
$$$$$$aaaaaa
bcdef$
$
abc


If I use grep to search this file with the regular expression
'^[^\$]*$' my output is just 'abc'.
I will except the fact that I am wrong, but if I run this and I get
the answer abc then I
typed in something wrong or I am right. If someone could break this
down and explain all
details to this that would be cool. The part that is throwing us off
is the []* part. I thought
that it would accept anything that is not a '\' or '$' and repeat
anything but those. The other
 party saying that the brackets represent just on character and will
only repeat that one
character. Hopfully someone will take the time to clear this up for
us. Thank you for your time.

Thanks,
--
Jason Z.

_____________________________________________________________________

Research is what I'm doing when I don't know what I'm doing. --
Wernher von Braun

Reply via email to