That forward-slash in the OP's regex should have been a backslash, and the square brackets are redundant.
1
Your regex currently means "anything but whitespace, followed by slashes and d-letters, followed by one more of anything but whitespace". A simple ^\d+$ is sufficient.