# Java: Regex Exercises 1

Name _______________________________

Assume

    String subject = "This is test 123 of <a href="http://here.there.tld">Hello</>";
    String regex;
    String result;
    . . .
    Pattern pat = Pattern.compile(regex);
    Matcher mat = pat.matcher(subject);
    if (mat.find()) {
        result = mat.group();
    } else {
        result = "Failed";
    }

Questions to be supplied.