in reply to Re^6: deleting a specific element from an array
in thread deleting a specific element from an array

How does that contradict kyle? "apple\n" got matched even though it's not exactly "apple".
  • Comment on Re^7: deleting a specific element from an array

Replies are listed 'Best First'.
Re^8: deleting a specific element from an array
by oko1 (Deacon) on Dec 04, 2008 at 01:13 UTC

    I misunderstood kyle's "gets tossed" comment to mean "apple\n" will not be deleted if the regex is '^apple$'" - i.e., the deletion string will get tossed. From his comment and yours, it seems he meant it the other way - i.e., the content of "apple\n" "gets tossed" if the deletion string is "^apple$" - which is, of course, true. My mistake.


    --
    "Language shapes the way we think, and determines what we can think about."
    -- B. L. Whorf