Returns the input subsequence matched by the previous match.
For a matcher m with input sequence s, the expressions m.group() and s.substring(m.start(), m.end()) are equivalent.
Note that some patterns, for example a*, match the empty string. This method will return the empty string when the pattern successfully matches the empty string in the input.
@return The (possibly empty) subsequence matched by the previous match,in string form
@throws IllegalStateException If no match has yet been attempted, or if the previous match operation failed