Skip to content

Modern String RemainChars

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › String Library › String Library › RemainChars

RemainChars

Returns the text after the first character from a set.

Syntax

RemainChars( s, chars [, start] [, ic] )

Notes

  • O(n*k)

Examples

#import "std/strings"
using strings

print RemainChars( "width: 80", ":=" )       '' " 80" -- everything after the ":"
print RemainChars( "abacadabra", "cd" )      '' adabra -- after the first c or d
print RemainChars( "abacadabra", "xyz" )     '' (empty) -- a miss gives ""

Library: String Library
Category: String Library
Documented under: The Functions

Clone this wiki locally