We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
classMyRegex{// to match from 0 to 255// first match from 250 to 255 with 25[0-5]// or match from 200 to 249 with 2[0-4][0-9] or 2[0-4]\\d// or match from 0 to 199 with [01]?[0-9]?[0-9] or [0-1]?\\d{1,2}Stringoctets="([01]?\\d{1,2}|2[0-4]\\d|25[0-5])";Stringpattern=octets+"\\."+octets+"\\."+octets+"\\."+octets;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Regex
You are viewing a single comment's thread. Return to all comments →