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