scene_synthesizer.utils.is_regex
- scene_synthesizer.utils.is_regex(string)
Unofficial check whether a string is a regular expression, based on special characters (except ‘/’ which is used for namespacing in scene_synthesizer).
- Parameters:
string (str) – String.
- Returns:
Whether string contains special characters which hint at regular expressions.
- Return type:
bool