6 kyu

Regexp Basics - is it IPv4 address?

226 of 2,883taw

Description:

Implement String#ipv4_address?, which should return true if given object is an IPv4 address - four numbers (0-255) separated by dots.

It should only accept addresses in canonical representation, so no leading 0s, spaces etc.

Regular Expressions
Fundamentals

Stats:

CreatedDec 27, 2015
PublishedDec 27, 2015
Warriors Trained6658
Total Skips1461
Total Code Submissions23048
Total Times Completed2883
Ruby Completions226
Python Completions1283
JavaScript Completions1084
CoffeeScript Completions16
PHP Completions356
Total Stars134
% of votes with a positive feedback rating92% of 540
Total "Very Satisfied" Votes465
Total "Somewhat Satisfied" Votes60
Total "Not Satisfied" Votes15
Ad
Contributors
  • taw Avatar
  • jhoffner Avatar
  • Javatlacati Avatar
  • GiacomoSorbi Avatar
  • ekamaks Avatar
  • Just4FunCoder Avatar
  • farhanaditya Avatar
  • saudiGuy Avatar
Ad