Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Removes the prefix from text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Text | The text to check. | ">Hello World" | |
Prefix | The prefix to remove. | ">" | |
CaseSensitive | Pass 1 to check case sensitive. Default is 0 for case insensitive. |
0 | Optional |
Returns text.
Removes prefix:
MBS( "Text.RemovePrefix"; ">Hello World"; ">")
Creates directory and shows error:
Set Variable [$r; Value:MBS("Files.CreateDirectory"; $path)]
If [MBS("IsError")]
Show Custom Dialog ["Failed to create directory"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
Exit Script []
End If
Remove apple:
MBS( "Text.RemovePrefix"; "🍎🍓🍒"; "🍎")
Example result: 🍓🍒
This function is free to use.
Created 28th February 2016, last changed 31st January 2023