Class TadFormatRegexConverter

java.lang.Object
com.github.tadukoo.parsing.TadFormatRegexConverter
All Implemented Interfaces:
CommonPatterns

public final class TadFormatRegexConverter extends Object implements CommonPatterns
Class used to convert between TadFormatting and Java regexes.
Since:
Alpha v.0.1
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Constructor Details

    • TadFormatRegexConverter

      private TadFormatRegexConverter()
      Not allowed to instantiate TadFormatRegexConverter
  • Method Details

    • convertTadFormatToRegex

      public static String convertTadFormatToRegex(com.github.tadukoo.util.logger.EasyLogger logger, String TadFormat)
      Convert the given TadFormatting into a Java regex.
      Parameters:
      logger - The EasyLogger to log any messages to
      TadFormat - The TadFormatting string to convert to a regex
      Returns:
      The regex resulting from the TadFormatting conversion
    • convertRegexToTadFormat

      public static String convertRegexToTadFormat(com.github.tadukoo.util.logger.EasyLogger logger, String regex)
      Convert the given Java regex into TadFormatting.
      Parameters:
      logger - The EasyLogger to log any messages to
      regex - The Java regex to convert to TadFormatting
      Returns:
      The TadFormatting resulting from the regex conversion