Using Regular Expressions to validate a fixed length numerical string.
a = '547' /^\d\d\d$/ ~= a
12364 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
a = '547' /^\d\d\d$/ ~= a
a = '134323' /^[0-9]*$/ =~ a #result returns 0, indicating success