Related Post: Python Check If String Contains Special Characters Regex Python Regex Check If String Contains Only Specific Characters