trim_start()
Removes leading match of the specified regular expression.
Syntax
trim_start(
regex,
source)
Arguments
- regex: String or regular expression to be trimmed from the beginning of source.
- source: A string.
Returns
source after trimming match of regex found in the beginning of source.
Example
Statement bellow trims substring from the start of string_to_trim:
print trim_start('https://', 'https://www.ibm.com')
print_0 |
---|
www.ibm.com |