in reply to Re: Howto strip 42 from comma separated list using s///
in thread Howto strip 42 from comma separated list using s///

I'd much prefer one plain vanilla regex (w/o Perl /e magic), so does such a beast exist...?
/allan
  • Comment on Re^2: Howto strip 42 from comma separated list using s///

Replies are listed 'Best First'.
Re^3: Howto strip 42 from comma separated list using s///
by Perl Mouse (Chaplain) on Nov 03, 2005 at 14:05 UTC
    Just by listing all cases.
    s/,42\b|\b42,|^42$//
    But next time, ask VB questions on a VB forum.
    Perl --((8:>*