Uses of Class
java.util.regex.Pattern
| Package | Description |
|---|---|
| java.util | |
| java.util.regex |
-
Uses of Pattern in java.util
Methods in java.util that return Pattern Modifier and Type Method Description PatternScanner. delimiter()Returns the delimiterPatternin use by thisScanner.Methods in java.util with parameters of type Pattern Modifier and Type Method Description StringScanner. findInLine(Pattern pattern)Tries to find the pattern in the input.StringScanner. findWithinHorizon(Pattern pattern, int horizon)Tries to find the pattern in the input between the current position and the specified horizon.booleanScanner. hasNext(Pattern pattern)Returns whether thisScannerhas one or more tokens remaining to parse and the next token matches the given pattern.StringScanner. next(Pattern pattern)Returns the next token if it matches the specified pattern.ScannerScanner. skip(Pattern pattern)Tries to use specified pattern to match input starting from the current position.ScannerScanner. useDelimiter(Pattern pattern)Sets the delimiting pattern of thisScanner. -
Uses of Pattern in java.util.regex
Methods in java.util.regex that return Pattern Modifier and Type Method Description static PatternPattern. compile(String pattern)Equivalent toPattern.compile(pattern, 0).static PatternPattern. compile(String regularExpression, int flags)Returns a compiled form of the givenregularExpression, as modified by the givenflags.PatternMatcher. pattern()Returns thePatterninstance used inside this matcher.Methods in java.util.regex with parameters of type Pattern Modifier and Type Method Description static String[]Splitter. split(Pattern pattern, String re, String input, int limit)MatcherMatcher. usePattern(Pattern pattern)Sets a new pattern for theMatcher.