MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

meaning of a "*" in search string?


hi;

I have thought that a "*" is a wild card for string matching,
which is supposed to match anything including the empty string?

Then, can someone explain why `* does not produce
anything But `*`* does below?


Names["SignalProcessing`Analog`*"]
   {}

Names["SignalProcessing`Analog`*`*"]
  {SignalProcessing`Analog`Fourier`Private`a,
   etc...

The above makes no sense to me at all. This is the
help on Names:

  ?Names
  Names["string"] gives a list of the names of
  symbols which match the string.

so, then means the string "abs`*"  should generate a result,
if the string "abc`*`*" does , which it did !

Does Mathematica uses a different definition of the "*" for
string matching than the one we learned in school?

Steve


  • Prev by Date: Re: letrec/named let
  • Next by Date: Re: RC circuit
  • Previous by thread: Re: Re: How to quickly find number of non-zero elements in sparse matrix rows?
  • Next by thread: Re: meaning of a "*" in search string?