Source From Here
Question
What would be the best way to split a string on the first occurrence of a delimiter?
For example:
How do I split with first ':' to get: ['John', 'Hello, my link is http://abc.com'] ?
How-To
From the docs:
So the sample code:
Question
What would be the best way to split a string on the first occurrence of a delimiter?
For example:
How do I split with first ':' to get: ['John', 'Hello, my link is http://abc.com'] ?
How-To
From the docs:
So the sample code:
沒有留言:
張貼留言