Class RegExUtil

java.lang.Object
de.knightsoftnet.validators.shared.util.RegExUtil

public class RegExUtil extends Object
RegEx Util contains helper routines for regular expressions.
Author:
Manfred Tremmel
  • Constructor Details

    • RegExUtil

      public RegExUtil()
  • Method Details

    • getAllowedCharactersForRegEx

      public static String getAllowedCharactersForRegEx(String pregEx)
      get all allowed characters which can be part of a String which matches a given regular expression. TODO: this is a first feature incomplete implementation, has to be improved.
      Parameters:
      pregEx - string contains a regular expression pattern
      Returns:
      string with all characters that can be part of a string that matches the regex