in reply to Im not sure what this regex is called or how to write it

There's nothing map can do that cannot be accomplished by a loop. Unless you are after one-liner bragging rights, your cascading filters are likely to be a good deal easier to understand (and extend, and get right) than a single complicated regular expression. My advice would be to use the cascading filters unless there is a really compelling need not to.
  • Comment on Re: Im not sure what this regex is called or how to write it

Replies are listed 'Best First'.
Re^2: Im not sure what this regex is called or how to write it
by misterperl (Friar) on Dec 18, 2012 at 14:36 UTC
    >> There's nothing map can do that cannot be accomplished by a loop. Unless you are after one-liner bragging rights.... Sadly, my first programming language I learned, c 1977, was APL, and henceforth I was *conditioned* to believe anything over 1 line was excess.. My Bad!
      ... first programming language I learned ... *conditioned* to believe ...

      Another example of the "Rubber Duckie Syndrome."