Python厨とRuby厨が仲直りするスレッドat TECH
Python厨とRuby厨が仲直りするスレッド - 暇つぶし2ch963:デフォルトの名無しさん
08/01/04 23:11:51
(Ruby) xor (Python) == Falcon Programming Language
URLリンク(www.falconpl.org)


load regex

// create the regex using the first script parameter
try
   filter = Regex( args[0] )
catch
   > "Please, provide a valid regular expression as first parameter"
   return
end

stdinput = stdIn()   // get the standard input as a file
line = ""            // prepare an empty string to read data 

loop
   if stdinput.readLine( line, 30000 ) == 0
      return
   end

   if filter.match( line )
      > line
   end
end



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch