Package com.globalmentor.util.regex
Class Matchers
java.lang.Object
com.globalmentor.util.regex.Matchers
Deprecated.
Utilities for regular expression matchers.
- Author:
- Garret Wilson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
getIntGroups
(Matcher matcher) Deprecated.Returns an array of integer versions from the available groups of the given matcher.static int[]
getIntGroups
(Matcher matcher, int beginGroupNumber) Deprecated.Returns an array of integer versions from the available groups of the given matcher, starting at the requested group number.
-
Constructor Details
-
Matchers
public Matchers()Deprecated.
-
-
Method Details
-
getIntGroups
Deprecated.Returns an array of integer versions from the available groups of the given matcher.null
groups will be counted as zero. That is, if a matcher contains groups "2", "3", and "null", the array{2, 3, 0}
will be returned.- Parameters:
matcher
- The matcher for which an integer array of group values should be returned.- Returns:
- An array of integers representing the integer values of the matcher groups.
- Throws:
IllegalArgumentException
- if one of the matcher's groups is notnull
and cannot be parsed as an integer.
-
getIntGroups
Deprecated.Returns an array of integer versions from the available groups of the given matcher, starting at the requested group number.null
groups will be counted as zero. That is, if a matcher contains groups "2", "3", and "null", the array{2, 3, 0}
will be returned.- Parameters:
matcher
- The matcher for which an integer array of group values should be returned.beginGroupNumber
- The one-based group number at which to begin retrieving values.- Returns:
- An array of integers representing the integer values of the matcher groups.
- Throws:
IllegalArgumentException
- if one of the matcher's groups is notnull
and cannot be parsed as an integer.
-
RegularExpressions
.