Logo

Programming-Idioms

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

Idiom #83 Regex with character repetition

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

uses RegExpr;
with TRegExpr.Create('htt+p') do try
finally
  free;
end;
(def r #"htt+p")

New implementation...
< >
deleplace