Exemple #1
0
def splitNumeric(s, splitchar="([-,/])"):
    '''Splits a date, decimal or other token containind numbers or returns False'''
    parts = charsplit(splitchar, s)
    if len(parts) > 2 and parts[0].isnumeric():
        return parts
    return False
Exemple #2
0
def splitNumeric(s, splitchar="([-,/])"):
    '''Splits a date, decimal or other token containind numbers or returns False'''
    parts = charsplit(splitchar, s)
    if len(parts) > 2 and parts[0].isnumeric():
        return parts
    return False