Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- #
- # Turn off buffering
- STDIN.sync = true
- STDOUT.sync = true
- # Enter infinite loop
- while (STDIN)
- line = gets
- if line =~ /my_regex/s
- puts "desired_map_output\n"
- else
- puts "\n"
- end
- end
Add Comment
Please, Sign In to add comment