sql - extract valid IP from a field in oracle DB in C -
i facing problem in c language extract valid ip(v4 , v6) oracle db example.
1, if field having ip : 10.2.33.4.5-34 should able extract 10.2.33.4 only
2, if field have abc-100.2.33.4.545 extract 100.2.33.4
hope there solution in c .
thanks , regards, mohib
str1[]="10.2.33.4.5-34" substr(1,11,str1); str2[]="abc-100.2.33.4.545" substr(5,14,str2)
the above code should used in c.
Comments
Post a Comment