← Goldman Sachs questions

Validate IP address using Regular Expressions

Filed under Goldman Sachs

Write a Perl script using a regular expression to validate if a given string is a valid IPv4 address (four octets between 0-255 separated by dots).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.