fork download
  1. import std.stdio, std.regex, std.algorithm;
  2.  
  3. void main(string[] args)
  4. {
  5. auto r = regex("htt+p");
  6. ["http","httpp","httppp", "htttp"]
  7. .each!(a => (matchAll(a, r).hit == "http")
  8. .writeln
  9. );
  10. }
Success #stdin #stdout 0s 3240KB
stdin
Standard input is empty
stdout
true
true
true
false