- Subject: Re: [slang-users] Multi-character delimiter for strchop()?
- From: Manfred Hanke <Manfred.Hanke@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 05 Oct 2014 19:44:03 +0200
On 05.10.2014 19:16, J.B. Nicholson-Owens wrote:
> Would it be possible and appropriate to extend strchop() to allow for a
> string to be used as a delimiter to chop other strings?
>
> So strchop("afoobfooc", "foo", 0) would return the string array
> ["a","b","c"]?
Maybe you are looking for the following:
strtok("afoobfooc", "foo")
Cheers,
Manfred
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.
[2014 date index]
[2014 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]