package org.xander.katas;

import java.util.regex.Matcher;

public class RegexLearn {
    public boolean findTheResult(Matcher matcher) {
        boolean found = false;
        while (matcher.find()) {
            System.out.printf("The following text is found:" +
                                " \"%s\"; starting at " +
                                "index %d and ending at index %d.%n%n",
                                matcher.group(),
                                matcher.start(),
                                matcher.end());
            found = true;
        }
        if(!found) {
            System.out.println("No match found.");
            return found;
        } else {
            return found;
        }
    }
}

@@ -255,18 +255,16 @@
  found:%22
- +
 %0A       
@@ -287,16 +287,17 @@
         
++
  %22 %5C%22%25s%5C
@@ -312,18 +312,16 @@
 ing at %22
- +
 %0A       
@@ -344,16 +344,17 @@
         
++
  %22index 
@@ -578,16 +578,17 @@
       if
+ 
 (!found)

Update RegexLearn.java