It needs a major modification, since matching an integer is required. The accepted answer \d+ involves only "positive" integers. But -333 or +777 are also integers, which leads to two possible solutions with the last one being the most accurate:
The hyphen (optional minus sign) and a digit ...
Submitted by seQuienSoy - a year ago