Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg56921] Re: meaning of a "*" in search string?
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 10 May 2005 03:42:26 -0400 (EDT)
  • References: <d5j5lg$qep$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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

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