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.
var t = s.TrimStart(p);
var t = s.startsWith(p) ? s.substring(p.length, s.length) : s;
var t = s.startsWith(p) ? s.replaceFirst(p,"") : s;
if (index(s,p) == 1) then
t = s(len(p)+1:)
else
t = s
end if
let t = s.startsWith(p) ? s.substring(p.length) : s;
String t = s.replaceFirst("^" + p, "");
int i = s.indexOf(p), n = p.length();
t = i == 0 ? s.substring(n) : s;
local t = (s:sub(0, #p) == p) and s:sub(#p+1) or s
$t = strpos($s, $p) === 0 ? substr($s, strlen($p)) : $s;
if (0 == index $s, $p) {
my $t = substr $s, length $p;
}
t = s[s.startswith(p) and len(p):]
t = s.removeprefix(p)
t = s.delete_prefix(p)
t = s.sub(/\A#{p}/, "")
let t = s.strip_prefix(p).unwrap_or(s);
let t = if s.starts_with(p) { &s[p.len()..] } else { s };
let t = s.trim_start_matches(p);