[Date Index] [Thread Index] [Author Index]
Re: ReplaceAll (/.)
Chris is right: Chris Rodgers wrote: > p-valko at tamu.edu 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. > > Chris.