[ABC]+(?<!C)
Note that [ABC]+ can be mutch more complex then this is.
[ABC]+(?<!C)
CStringArray straIPAddresses;
straIPAddresses.RemoveAll();
WSADATA wsa_Data;
int wsa_ReturnCode = WSAStartup(0x101,&wsa_Data);
char szHostName[255];
gethostname(szHostName, 255);
struct hostent *host_entry;
host_entry = gethostbyname(szHostName);
int nAdapter = 0;
while ( host_entry->h_addr_list[nAdapter] )
{
char * szLocalIP;
szLocalIP = inet_ntoa (*(struct in_addr *)host_entry->h_addr_list[nAdapter]);
nAdapter++;
straIPAddresses.Add(szLocalIP);
}
WSACleanup();