MathGroup Archive 2007

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

Search the Archive

Re: little help needed


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
> 
> 

DeleteCases[
   ParticleData["Baryon"],
   ({s_String, _} | s_String) /;
         StringMatchQ[s, ___ ~~ "Bar" ~~ ___]
]

Szabolcs


  • Prev by Date: PlotVectorField with continuous lines
  • Next by Date: Re: Solve and Piecewise Functions
  • Previous by thread: Re: little help needed
  • Next by thread: Re: little help needed