An invocation of this method of the form findWithinHorizon(pattern) behaves in exactly the same way as the invocation findWithinHorizon(Pattern.compile(pattern, horizon)). @param pattern a string specifying the pattern to search for @return the text that matched the specified pattern @throws IllegalStateException if this scanner is closed @throws IllegalArgumentException if horizon is negative
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|