phobos and splitting things... but not with whitespace.
    simendsjo 
    simendsjo at gmail.com
       
    Sat Jun 23 09:56:24 PDT 2012
    
    
  
On Sat, 23 Jun 2012 18:50:05 +0200, Chad J  
<chadjoan at __spam.is.bad__gmail.com> wrote:
> Looking for findSplit?  
> http://dlang.org/phobos/std_algorithm.html#findSplit
>  Cool, that's what I want!
>  Now if I could find the elegant way to remove exactly one line from the  
> text without scanning the text after it...
Isn't that exactly what findSplit does? It doesn't have to search the rest  
of the string after the match, it just returns a slice of the rest of the  
array (I guess - haven't read the code)
    
    
More information about the Digitalmars-d-learn
mailing list