This example will show how to validate an IP Address to see if it is valid by using PHP Regular Expression.
First, you may need to know what an IP Address is consist of. An IP Address consists of 4 parts. Each part separated by period "." and these part consists the digits which ranges from 0 to 255.