The input string to trim.
The substring to remove from the start of input
.
The resulting string after removing target
from the start, or the original string if it does not start with target
.
Removes up to a specified number of occurrences of a target substring from the start of the input string.
The string to trim from the start.
The substring to remove from the start of the input string.
The maximum number of times to remove the target substring.
The resulting string after removing the target substring up to the specified maximum number of times.
Removes all occurrences of the specified target substrings from the start of the input string.
The string to trim.
An array of substrings to remove from the start of the input string.
The trimmed string with all specified targets removed from the start.
Removes the specified target substrings from the start of the input string.
The string to trim.
An array of substrings to remove from the start of the input.
If true
, repeatedly removes all occurrences of the target substrings from the start;
if false
, removes only the first occurrence of any target substring.
The trimmed string.
Removes the specified substring from the start of the given string, if present.