rDrama/files/helpers/strings.py

4 lines
No EOL
138 B
Python

# clean strings for searching
def sql_ilike_clean(my_str):
return my_str.replace(r'\\', '').replace('_', r'\_').replace('%', '').strip()