Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ country_validation
Function
country_validation
cli_master/validation_page.py:58–60 ·
view source on GitHub ↗
(country)
Source
from the content-addressed store, hash-verified
56
57
58
def
country_validation(country):
59
# Example: Allow only alphabetical characters and spaces
60
return
bool(re.match(
"^[a-zA-Z ]+$"
, country))
61
62
63
# Example usage:
Callers
1
validation_page.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected