Universal Utils#
Functions#
- perke.utils.functions.is_alphanumeric(word: str, valid_punctuation_marks: str = '-') bool #
Check if a word contains only alphanumeric characters and valid punctuation marks.
- Parameters:
word (str) – The given word
valid_punctuation_marks (str) – Punctuation marks that are valid, defaults to
'-'
.
- Returns:
The result
- Return type:
bool