MathGroup Archive 2005

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

Search the Archive

Re: Problem with matching.


Josef,

Because the numbers 1  and 2 are not the same, so they cannot be
matched with the same a.

F[{x, 2, c}]F[{x, 1, f}] /. F[{___, a_, ___}]F[{___, b_, ___­}] :> yes


will work fine.

Regards
Peter


  • Prev by Date: Re: Problem with matching.
  • Next by Date: Re: New Web Site for Mathematica Users using WikiMedia
  • Previous by thread: Re: Problem with matching.
  • Next by thread: Re: Problem with matching.