Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: meaning of a "*" in search string?

  • To: mathgroup at
  • Subject: [mg56921] Re: meaning of a "*" in search string?
  • From: dh <dh at>
  • Date: Tue, 10 May 2005 03:42:26 -0400 (EDT)
  • References: <d5j5lg$qep$>
  • Sender: owner-wri-mathgroup at

Hi Steve,
The wild card "*" in Names[..] stands for any string in the current 
context. Therefore,
refers to any name in the context: SignalProcessing`Analog
refers to any name in any context 1 level below the context 

Sincerely, Daniel

steve wrote:
> 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: Mathematica and RC circuits
  • Next by Date: Re: Problem with substitutions in SparseArray?
  • Previous by thread: meaning of a "*" in search string?
  • Next by thread: Calling a MS-DOS command