String & delimit

Gregor Kopp gk at cutcopy.com
Tue Apr 3 09:57:16 PDT 2007


import std.string;
import std.stdio;
void main()
{writefln(split(split(
"blablabla thisis a string example <i_need_this_text> ole!"
, "<")[1],">")[0]);}


SCNR!!!
Maybe a Regex would be better, if you just want to do textprocessing?

in good fun, Gregor



More information about the Digitalmars-d mailing list