Select two consecutive digits and call the same function for other blocks
if ( len ( givenString ) < index + 2 or givenString [ index ] == '0' ) : NEW_LINE INDENT return ; NEW_LINE DEDENT ipAddress = ipAddress + givenString [ index : index + 2 ] + [ ' . ' ] ; NEW_LINE GetAllValidIpAddress ( result , givenString , index + 2 , count + 1 , ipAddress ) ; NEW_LINE