tolower

tolower(x)

Put text in lower casing

Parameters

Name Type Description Default
x Union[str, List[str]] A str or a list of str required

Returns

Name Type Description
Union[str, List[str]] a str with x in lower case or a list of lower cased elements if in x a list is provided

Examples

>>> from rlike import *
>>> tolower('Hello World')
'hello world'
>>> tolower(['Hello World', 'How are you'])
['hello world', 'how are you']