Class GenerateRegularExpressionFromNumericRange

java.lang.Object
javatapas.util.GenerateRegularExpressionFromNumericRange

public class GenerateRegularExpressionFromNumericRange
extends Object
Version:
2021-05-28
Author:
Kodiak Brown
See Also:
https://stackoverflow.com/questions/6710236/function-to-create-regex-matching-a-number-range
  • Constructor Details

    • GenerateRegularExpressionFromNumericRange

      public GenerateRegularExpressionFromNumericRange()
  • Method Details

    • generateRegularExpressionFromNumericRange

      public static String generateRegularExpressionFromNumericRange​(int startInteger, int endInteger) throws Exception
      Generate 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