Package javatapas.util
Class GenerateRegularExpressionFromNumericRange
java.lang.Object
javatapas.util.GenerateRegularExpressionFromNumericRange
public class GenerateRegularExpressionFromNumericRange extends Object
Generate a Regular Expression From a Numeric Range.
Published at https://www.javatapas.com/util/Java-Generate-Regular-Expression-From-Numeric-Range.html
Javadoc at https://www.javatapas.com/docs/javatapas/util/GenerateRegularExpressionFromNumericRange.html
Published at https://www.javatapas.com/util/Java-Generate-Regular-Expression-From-Numeric-Range.html
Javadoc at https://www.javatapas.com/docs/javatapas/util/GenerateRegularExpressionFromNumericRange.html
- Version:
- 2021-05-28
- Author:
- Kodiak Brown
- See Also:
- https://stackoverflow.com/questions/6710236/function-to-create-regex-matching-a-number-range
-
Constructor Summary
Constructors Constructor Description GenerateRegularExpressionFromNumericRange()
-
Method Summary
Modifier and Type Method Description static String
generateRegularExpressionFromNumericRange(int startInteger, int endInteger)
Generate a Regular Expression From a Postive numeric range.
-
Constructor Details
-
GenerateRegularExpressionFromNumericRange
public GenerateRegularExpressionFromNumericRange()
-
-
Method Details
-
generateRegularExpressionFromNumericRange
public static String generateRegularExpressionFromNumericRange(int startInteger, int endInteger) throws ExceptionGenerate a Regular Expression From a Postive numeric range.- Parameters:
startInteger
- The start number of the numeric range. Must be greater than or equal to 0.endInteger
- The enc number of the numeric range. Must be greater than or equal to the start number.- Throws:
Exception
-