10-08-2013
15,129,
5,008
Join Date: Jul 2012
Last Activity: 4 May 2020, 4:31 PM EDT
Location: Aachen, Germany
Posts: 15,129
Thanks Given: 735
Thanked 5,008 Times in 4,483 Posts
Please use code tags as required by forum rules!
Not too bad. Remove the double closing square bracket at the end, and it will fly. The [6] and [2] aren't necessary, make them 6 and 2.
That regex will also match e.g. 55.58.16.211 or ...217; so if chances are there other, unwanted matches possible und you want exactly and only the two mentioned, other measures need to be taken.
Please be aware that the . in the regex will match any char including dot. If it HAS to be ".", make it \. in the regex.