![]() | The Same Thing In OmniMark |
In OmniMark the syntax is different but the general style is the same:
set postalcode to "H3G 1V7"
do scan postalcode
match (uc digit uc) => part1 " "?
(digit uc digit) => part2 =|
set postalcode to part || part2
output postalcode || "%n"
else
output "Invalid postalcode: " || postalcode || "%n"
done
