Mwnci trimprefix() Function

Syntax

trimprefix(string)

Description

The trimprefix() function returns a strings with the stated prefix removed.

Example

Version="v_1.2"
println(trimprefix(Version, "v_"))
URL="https://foo.bar.com"
Domain=trimprefix(URL, "https://")
println(Domain)


1.2
foo.bar.com