removeprefix(
TEXT
,
PREFIX
)

The removeprefix( function checks to see if a text item starts with a prefix. if it does, the prefix is removed.


Parameters

This function has two parameters:

text – text that may or may not have a prefix.

prefix – prefix value to remove.


Description

This function checks to see if a text item starts with a prefix. If it does, the prefix is removed.

removeprefix("18005551212","1") ☞ 8005551212
removeprefix("Mr. John Doe","Mr. ") ☞ John Doe

Note: This function is equivalent to:

?(text beginswith prefix,text[length(prefix)+1,-1],text)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.