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 2003

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

Search the Archive

Re: negative pattern matching anyone?

  • To: mathgroup at
  • Subject: [mg43731] Re: negative pattern matching anyone?
  • From: poujadej at (Jean-Claude Poujade)
  • Date: Thu, 2 Oct 2003 02:51:33 -0400 (EDT)
  • References: <blcqqj$p8h$>
  • Sender: owner-wri-mathgroup at

Paolo Bientinesi <pauldj at> wrote in message news:<blcqqj$p8h$1 at>...
> Then, is there a way to match both -3 and -a with the same pattern?

For instance you can use this kind of pattern :

Cases[{3, -3, -a, a+b}, _Integer?Negative | -_]



  • Prev by Date: [Q] gridMathematica - Applications/Evaluations
  • Next by Date: Functions with initial values
  • Previous by thread: [Q] gridMathematica - Applications/Evaluations
  • Next by thread: Re: negative pattern matching anyone?