in reply to Re^2: REGEX Match Single Digitin thread REGEX Match Single Digit
That will match just the number 1, and not 11, or 111, etc.
It matches "1" and "1\n" only.
/^1$/:
/^1\z/ will only match "1".