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

Re: ReplaceAll (/.)

  • To: mathgroup at
  • Subject: [mg69418] Re: ReplaceAll (/.)
  • From: Chris Rodgers <rodgers at>
  • Date: Mon, 11 Sep 2006 05:39:26 -0400 (EDT)
  • Organization: University Of Oxford, England
  • References: <ed9491$tu$> <edad92$p9i$>

p-valko at wrote:
> The pattern  x_Times  would pick "a part of an expression that - after
> plugging into the function Times - gives True". There is no such part
> of your expression so it is returned intact.

For the sake of the archives, I'd like to point out that this isn't 
quite right.

x_Times matches anything whose Head === Times.

x_?Times would match anything where Times[x] were True.


  • Prev by Date: Re: four argument form of infix
  • Next by Date: Re: Null's not null?
  • Previous by thread: Re: Re: ReplaceAll (/.)
  • Next by thread: Re: ReplaceAll (/.)