Skip to contents

Removes a specified prefix from the beginning of a string. This function is useful for cleaning or standardizing strings by removing known prefixes.

Usage

remove_prefix(string, prefix)

Arguments

string

A string from which the prefix should be removed.

prefix

A string representing the prefix to be removed.

Value

A string with the prefix removed.