- pattern
- the pattern used to scan.
- horizon
- the search limit.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalStateException if the Scanner is closed. Java.Lang.IllegalArgumentException if horizon is less than zero.
Tries to find the pattern in the input between the current position and the specified horizon. Delimiters are ignored. This call is the same as invoking findWithinHorizon(Pattern.compile(pattern)).