2024-07-16 15:55:05 +02:00
|
|
|
print(trim(' hello world '))
|
|
|
|
print(trimLeft(' hello world '))
|
|
|
|
print(trimRight(' hello world '))
|
|
|
|
print(trim('xxxx hello world xx', 'x'))
|
|
|
|
print(trimLeft('xxxx hello world xx', 'x'))
|
|
|
|
print(trimRight('xxxx hello world xx', 'x'))
|
|
|
|
print(splitByString(' ', 'hello world and more'))
|
|
|
|
print(splitByString(' ', 'hello world and more', 1))
|
|
|
|
print(splitByString(' ', 'hello world and more', 2))
|
|
|
|
print(splitByString(' ', 'hello world and more', 10))
|
2024-08-13 11:57:30 +02:00
|
|
|
print(like('banana', 'N'))
|
|
|
|
print(like('banana', 'n'))
|
|
|
|
print(like('banana', 'naan'))
|
|
|
|
print(ilike('banana', 'N'))
|
|
|
|
print(ilike('banana', 'n'))
|
|
|
|
print(ilike('banana', 'naan'))
|
|
|
|
print(notLike('banana', 'N'))
|
|
|
|
print(notILike('banana', 'NO'))
|