Understanding Java regular expression [duplicate]

match 0 or 1 optional then two digits (0-9) eg 0, 122, 99
or 2 then one digit 0-4 then one digit (0-9) eg 204, 222
or 25 then one digit 0-5 eg 250, 255
then a Dot (.)
repeat 3 times
then the same thing but once and without the Dot at the end.

be aware that the \’s should be changed to \ when you put it in a tool like that

Leave a Comment