MichiganRon
MIS
I will be receiving a string containing an IP address and domain name.
Example:
mydomain.com[192.168.245.13]
I need to strip the IP address out and add it to a variable. In other words, I need to keep the IP address and nothing else.
The construction of the string will always contain the IP address within square brackets.
I'm looking for the most efficient way to do this.
Any suggestions?
Thanks,
Ron
“If you are irritated by every rub, how will you be polished?” ~ Mevlana Rumi
Do you live in Michigan? Join us in the Tek-Tips in Michigan forum.
Example:
mydomain.com[192.168.245.13]
I need to strip the IP address out and add it to a variable. In other words, I need to keep the IP address and nothing else.
The construction of the string will always contain the IP address within square brackets.
I'm looking for the most efficient way to do this.
Any suggestions?
Thanks,
Ron
“If you are irritated by every rub, how will you be polished?” ~ Mevlana Rumi
Do you live in Michigan? Join us in the Tek-Tips in Michigan forum.