Ejemplo n.º 1
0
 def __init__(self, placeholder: str = SpanishNumeric.PlaceHolderDefault):
     self.__regexes = [
         ReVal(
             re=SpanishNumeric.DoubleDecimalPointRegex(placeholder),
             val='DoubleNum'),
         ReVal(
             re=SpanishNumeric.DoubleWithoutIntegralRegex(placeholder),
             val='DoubleNum'),
         ReVal(
             re=SpanishNumeric.DoubleWithMultiplierRegex,
             val='DoubleNum'),
         ReVal(
             re=SpanishNumeric.DoubleWithRoundNumber,
             val='DoubleNum'),
         ReVal(
             re=SpanishNumeric.DoubleAllFloatRegex,
             val='DoubleSpa'),
         ReVal(
             re=SpanishNumeric.DoubleExponentialNotationRegex,
             val='DoublePow'),
         ReVal(
             re=SpanishNumeric.DoubleCaretExponentialNotationRegex,
             val='DoublePow'),
         ReVal(
             re=self._generate_format_regex(LongFormatMode.DOUBLE_DOT_COMMA,
                                            placeholder),
             val='DoubleNum'),
         ReVal(
             re=self._generate_format_regex(
                 LongFormatMode.DOUBLE_NO_BREAK_SPACE_COMMA,
                 placeholder),
             val='DoubleNum')
     ]
Ejemplo n.º 2
0
 def __init__(self, placeholder: str = SpanishNumeric.PlaceHolderDefault):
     self.__regexes = [
         ReVal(
             re=SpanishNumeric.NumbersWithPlaceHolder(placeholder),
             val='IntegerNum'),
         ReVal(
             re=SpanishNumeric.NumbersWithSuffix,
             val='IntegerNum'),
         ReVal(
             re=self._generate_format_regex(LongFormatMode.INTEGER_DOT,
                                            placeholder),
             val='IntegerNum'),
         ReVal(
             re=self._generate_format_regex(LongFormatMode.INTEGER_BLANK,
                                            placeholder),
             val='IntegerNum'),
         ReVal(
             re=self._generate_format_regex(
                 LongFormatMode.INTEGER_NO_BREAK_SPACE, placeholder),
             val='IntegerNum'),
         ReVal(
             re=SpanishNumeric.RoundNumberIntegerRegexWithLocks,
             val='IntegerNum'),
         ReVal(
             re=SpanishNumeric.NumbersWithDozenSuffix,
             val='IntegerNum'),
         ReVal(
             re=SpanishNumeric.AllIntRegexWithLocks,
             val='IntegerSpa'),
         ReVal(
             re=SpanishNumeric.AllIntRegexWithDozenSuffixLocks,
             val='IntegerSpa')
     ]