Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • D

Idiom #83 Regex with character repetition

Declare the regular expression r matching the strings "http", "htttp", "httttp", etc.

import std.regex;
auto r = regex("htt+p");
(def r #"htt+p")

New implementation...
< >
deleplace