toolic's YAPE explanation makes that clear, but your original spec indicates you want a single digit (known in advance, I gather).
Hence, /1{1}/ for a single "1" anywhere in a line, or /^1{1}$ for a line with a single "1" as its only content.
In reply to Re^3: REGEX Match Single Digit
by ww
in thread REGEX Match Single Digit
by spickles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |