in reply to Re^2: Regex question
in thread Regex question
Well, I can't entirely agree. The code in my prior post is intended to be instructional, in the vein of "crawl before you walk; walk before you run." Given that, perhaps it should have been ("may be," if I get around to it) extensively commented.
* We can regard "gallon" as ambiguous, as that could mean "any combination of containers of 2% milk which aggregate to a gallon," but it might also mean that you have a specific reason for wanting the milk in a "one gallon container."
That leaves:
2: =~s/Select the type 2% where the prices is <= other prices./Buy the le +ast expensive 2% milk/;
Perhaps next time you go to the store to buy apples you should watch out for the oranges. Of course, I need to watch out too... for the absurdities to which my logic leads me. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regex question
by Your Mother (Archbishop) on May 21, 2009 at 01:09 UTC |