- pattern
- used to skip over input.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalStateException if the Scanner is closed. Java.Util.NoSuchElementException if the specified pattern match fails.
Tries to use specified pattern to match input starting from the current position. The delimiter will be ignored. If a match is found, the matched input will be skipped. If an anchored match of the specified pattern succeeds, the corresponding input will also be skipped. Otherwise, a NoSuchElementException will be thrown. Patterns that can match a lot of input may cause the Scanner to read in a large amount of input.