Validate String Using Regex Python Documentation