How do I get sub string if a string contains the following characters "Connection-specific DNS Suffix . :" followed by any string?
Ex:
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Local Area Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : abc.abc.com
Link-local IPv6 Address . . . . . : fe80::8ca3:bc6c:d958:f1f5%13
IPv4 Address. . . . . . . . . . . : 10.96.72.154
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.96.72.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : abc.abc.com
Tunnel adapter isatap.asia.jci.com:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : abc.abc.com
Tunnel adapter Local Area Connection* 12:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{DB074F38-9E68-4ABE-AF31-D3750FE10DE1}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{01405796-6937-431A-B61D-DBC785F4F56B}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
i want only Connection-specific DNS Suffix . : abc.abc.com string from hole string