[sanniolug] Re: Regex

  • From: "Francesco Cioffi" <fcioffi@xxxxxxxxxxxxx>
  • To: sanniolug@xxxxxxxxxxxxx
  • Date: Wed, 20 Feb 2008 19:03:13 +0100

O meglio:

$stdin.each("") {|block|
  puts block if block.slice(/#{ARGV[0]}/)
}

bye

-- 
Ing. Francesco Cioffi (http://www.fcioffi.net)
Linux User id #340148 (http://counter.li.org)
Debian GNU/Linux user (http://www.debian.org)
Universita` del Sannio di Benevento (http://www.grace.ing.unisannio.it)
SannioLUG (http://www.sanniolug.org)

Other related posts: