Sunday, 8 September 2013

Halfing a string at a particular character

Halfing a string at a particular character

So, I have a string called proxy, it has the value of 194.156.123.1.1:8080.
How do I halve it at the colon?
So I want 2 variables like this.
IP=194.156.123.1.1
PORT=8080
I know this is really easy, but I'm new, and new people have problems that
may seem easier to the experienced :)

No comments:

Post a Comment