Vladimir Panteleev via Digitalmars-d-learn píše v So 10. 01. 2015 v 07:42 +0000: > On Saturday, 10 January 2015 at 02:10:04 UTC, Jesse Phillips > wrote: > > On Friday, 9 January 2015 at 13:50:29 UTC, eles wrote: > >> https://codegolf.stackexchange.com/questions/44278/debunking-stroustrups-debunking-of-the-myth-c-is-for-large-complicated-pro > > > > Link to answer in D: > > http://codegolf.stackexchange.com/a/44417/13362 > > I think byLine is not necessary. By default . will not match line > breaks. > > One statement solution: > > import std.net.curl, std.stdio; > import std.algorithm, std.regex; > > void main() { > get("http://www.stroustrup.com/C++.html") > .matchAll(`<a.*?href="(.*)"`) > .map!(m => m[1]) > .each!writeln(); > } > > Requires Phobos PR#2024 ;) Oh here is it, I was looking for each. I think it is allready in a phobos but I can not find. Now I know why :D
Re: For those ready to take the challenge
Daniel Kozak via Digitalmars-d-learn Sat, 10 Jan 2015 07:49:23 -0800
- Re: For those ready t... Nordlöw
- Re: For those rea... Adam D. Ruppe via Digitalmars-d-learn
- Re: For those... bearophile via Digitalmars-d-learn
- Re: For ... Adam D. Ruppe via Digitalmars-d-learn
- Re: For ... Adam D. Ruppe via Digitalmars-d-learn
- Re: For those ready to take th... Jesse Phillips via Digitalmars-d-learn
- Re: For those ready to ta... Andrei Alexandrescu via Digitalmars-d-learn
- Re: For those ready to ta... Vladimir Panteleev via Digitalmars-d-learn
- Re: For those ready t... Daniel Kozak via Digitalmars-d-learn
- Re: For those ready to take th... MattCoder via Digitalmars-d-learn