fork download
  1. import java.util.regex.*;
  2.  
  3. class Main
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. java.io.BufferedReader in = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));
  8. String input = "";
  9. String s;
  10. while ((s = in.readLine()) != null && s.length() != 0) input += s;
  11. Pattern pattern = Pattern.compile("\\*\\.(?:out|text)\\\"\\s+not\\sfound");
  12. Matcher matcher = pattern.matcher(input);
  13. if (matcher.find())
  14. System.out.println("Match found");
  15. }
  16. }
Success #stdin #stdout 0.03s 245632KB
stdin
debug1: Authentications that can continue: publickey,gssapi-with-mic,password 
debug1: Next authentication method: publickey 
debug1: read PEM private key done: type RSA 
debug1: Enabling compression at level 6. 
debug1: Authentication succeeded (publickey). 
debug1: channel 0: new [client-session] 
debug1: Entering interactive session. 
debug1: Sending subsystem: sftp 
Can't ls: "/home/dev/customer/*.out" not found 
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 
debug1: channel 0: free: client-session, nchannels 1 
debug1: fd 0 clearing O_NONBLOCK 
debug1: fd 2 clearing O_NONBLOCK 
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds 
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0 
debug1: Exit status 0 
debug1: compress outgoing: raw data 343, compressed 184, factor 0.54 
debug1: compress incoming: raw data 860, compressed 430, factor 0.50
stdout
Match found