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 2006

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

Search the Archive

perplexed by blank sequence in pattern replacement

  • To: mathgroup at
  • Subject: [mg68674] perplexed by blank sequence in pattern replacement
  • From: "Blake" <laing at>
  • Date: Wed, 16 Aug 2006 03:36:01 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Dear MathGroup:

I have been blithely using blank sequences in pattern matching for some
time. In persuit of a bug in a package of mine, I was quite alarmed to
find that I don't really understand how to use the blank sequence, as
expressed in the following simplified example:


Out[1]={a b c}

I expected Out[1]={a,b,c}, from a naieve reading of the full form of



Will someone PLEASE tell me why In[1] does not yield the results I
expected? (I can readily use a work-around, what I am concerned with is
a correct understanding of pattern matching).

Blake Laing
thesis slave
University of Oklahoma

  • Prev by Date: namespace collision [bug]
  • Next by Date: Re: Solving integrals
  • Previous by thread: Re: namespace collision [bug]
  • Next by thread: Re: perplexed by blank sequence in pattern replacement