Function to strip leading string for a list


Version: 2026b

Type: Features

Category: Programming

Subcategory: Labtalk

Jira: ORG-32741


string StripLeading(string str$)$

This function takes a text string and removes any leading list marker (number, letter, or bullet) and the whitespace(s) that follows it. The list marker are recognized when they begin with a Numeric Value/Single Letter followed by one of following separator: whitespace, ) (right-parenthesis), . (dot), : (colon).

Example:

StripLeading("1. this is a test")$=; //returns "this is a test".

In Set Column Values, you can find it under the String category.