@@ -0,0 +1,775 @@
+%0A/* This algorithm uses a regex pattern to find valid IP addresses from a list of string inputs%0A    - by Michael Sharp%0A    - msharp.oh@gmail.com%0A    - www.softwareontheshore.com */%0A    %0Aimport java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0Aimport java.util.Scanner;%0A%0Aclass ValidIPRegex %7B%0A    static Scanner in = new Scanner(System.in);%0A    %0A    public static void main(String%5B%5D args) %7B%0A        %0A        while(in.hasNext()) %7B%0A            String ip = in.next();%0A            System.out.println(ip.matches(new myRegex().pattern));%0A        %7D%0A    %7D%0A%7D%0A%0Apublic class myRegex %7B%0A    String pattern = %22%5E(%5B01%5D?%5C%5Cd%5C%5Cd?%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%5C%5C.%22 +%0A%09%09%22(%5B01%5D?%5C%5Cd%5C%5Cd?%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%5C%5C.%22 +%0A%09%09%22(%5B01%5D?%5C%5Cd%5C%5Cd?%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%5C%5C.%22 +%0A%09%09%22(%5B01%5D?%5C%5Cd%5C%5Cd?%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)$%22;%0A%7D%0A%0A  %0A    %0A

Create ValidIPRegex.java