Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

List.MatchesPrefix

Finds list entries which have a given prefix text.

Component Version macOS Windows Linux Server iOS SDK
List 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "List.MatchesPrefix"; List; Text { ; NoReturnEnding } )   More

Parameters

Parameter Description Example Flags
List The list of texts to search. "Hello"
Text The text to find. "Hello"
NoReturnEnding Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists. 1 Optional

Result

Returns new list or error.

Description

Finds list entries which have a given prefix text.
Comparison is case insensitive.

Examples

Finds matching prefixes:

MBS( "List.MatchesPrefix"; "Hello¶www¶World"; "w" )

Example result:
www
World

See also

Example Databases

Blog Entries

This function checks for a license.

Created 20th November 2015, last changed 18th July 2021


List.MatchesPostfix - List.MatchesSubString

💬 Ask a question or report a problem