ffho.py 333 B

12345678910111213
  1. import re
  2. def re_replace (pattern, replacement, string):
  3. return re.sub (pattern, replacement, string)
  4. def re_search (pattern, string, flags = 0):
  5. return re.search (pattern, string, flags)
  6. def is_bool (value):
  7. return type (value) == bool
  8. def any_item_in_list (items, list):
  9. return len(set(items).intersection(set(list))) != 0