There are two main options: Dynamic command sections, and dictation.
Using dynamic command sections:
Number [0..99].[0..999]
Quick Input, '{CMDSEGMENT:1}.{CMDSEGMENT:3}'
Using dictation:
Number *
Quick Input, '{CMD_AFTER}'
Dynamic command sections will generate many commands(100,000 in the example given) but will be recognized more accurately, dictation will only generate a single command but likely fail to get recognized sometimes.