# Here is an example of usage to validate an IPv4 address |
IS_MATCH takes an optional argument strict which defaults to False. When set to True it only matches the beginning of the string
IS_MATCH('ab', strict=False)('abc')
('abc', None)
IS_MATCH('ab', strict=True)('abc')
('abc', 'Invalid expression')
IS_MATCH takes an other optional argument search which defaults to False. When set to True, it uses regex method search instead of method match to validate the string.