MathGroup Archive 2007

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

Search the Archive

Re: little help needed


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