Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(def r #"htt+p")
auto r = regex("htt+p");
r = Regex.compile!("htt+p")
const r = /htt+p/
Sugar for:
const r = new RegExp ('htt+p')
const r = new RegExp ('htt+p')
Pattern r = compile("ht{2,}p");
preg_match_all("/htt+p/", $r, $matches)
Problem: this doesn't check the "p"...
my $r = qr/htt+p/;
qr is a quote-like operator.
However, in perl it's more common to use a regular expression directly, without holding it in a variable.
However, in perl it's more common to use a regular expression directly, without holding it in a variable.
r = /htt+p/