Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set line [gets stdin]
- if [regexp {^([a-z0-9]+\.)*[a-z0-9]{2,3}$} $line] {
- puts "YES"
- } else {
- puts "NO"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement