Here is a simple, easy-to-read solution that ranges from 0 to 255. The solutions that I see do not restrict the range to between 0 and 255.
^(25[0-5]|2[0-4]\d|[01]?\d\d?\.?){4}$