MathGroup Archive 2007

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

Search the Archive

Re: little help needed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76452] Re: little help needed
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 22 May 2007 02:58:35 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <f2rrkt$a6b$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

dta = ParticleData["Baryon"];

dta /. {str_ /; StringMatchQ[ToString[str], "*Bar*"] :>
    Sequence[], {str_, ___} /; StringMatchQ[str, "*Bar*"] :>
    Sequence[] }

Regards
   Jens

vasil michev wrote:
> How do i delete everything that has "Bar" in it from
> 
> DeleteCases[ParticleData["Baryon"], {___}]
> 
> its not string so I cant do it in the usual way, regexp doesnt seem to
> work either
> 
> 


  • Prev by Date: Re: Re: change $UserDocumentsDirectory
  • Next by Date: Re: Weird result in Mathematica 6
  • Previous by thread: Re: little help needed
  • Next by thread: Weird result in Mathematica 6