Regex that matches integers in between whitespace or start/end of string only

All you want is the below regex:

^\d+$

Leave a Comment