title: java - filter log file by regex
body: <p>i need to filter data from log and i need to filter data, that cointains time 13:00-14:59.
  but this and many other temptations failed.Nothing is displayed
  <a href="https://i.stack.imgur.com/1dt7r.png" rel="nofollow noreferrer">Log file</a></p>
  
  <p>My method : </p>
  
  <pre><code>public static void Proccesing(File file){
      String formula = ".*1(3 [0-5][0-9]|4 [0-5][0-9]).*";
  
      try{
          BufferedReader rd= new BufferedReader(new FileReader(file));
          String line = rd.readLine();
          Pattern pattern = Pattern.compile(formula);
          Matcher matcher = pattern.matcher(line);
  
          while(line != null){
              matcher.reset(line);
              if(matcher.find()){
                  line = rd.readLine();
                  System.out.println(line);
  
              }
  
          }
  
      } catch (FileNotFoundException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>}</p>