On start
if text > 12 characters then return error
end if
check first character
if first character is . Then return error

check character
loop if next character exists

Check character
if # or ? Or / then error

if . Then check next 3 characters
if 4th exists then error