The single-quotes will cause `^[1-9][0-9]+$` to be treated as a string literal rather than a pattern.