Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

List.MatchesSubString

Finds list entries which contains a given text.

Component Version macOS Windows Linux Server iOS SDK
List 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "List.MatchesSubString"; List; Text { ; Flags } )   More

Parameters

Parameter Description Example Flags
List The list to process. "Hello" ¶ "" ¶ "World"
Text The text to find. "Hello"
Flags Add 4 to reverse operation (NOT). 0 Optional

Result

Returns list or error.

Description

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

Examples

Try the function:

Set Variable [ $r ; Value: "1234¶5678¶12¶34¶5432¶0123¶3" ]
Set Variable [ $n ; Value: MBS( "List.MatchesSubString"; $r; "12" ) ]
Show Custom Dialog [ "Result" ; $n ]
// shows 1234 12 0123
Set Variable [ $d ; Value: MBS( "List.MatchesSubString"; $r; "12"; 4 ) ]
Show Custom Dialog [ "Result" ; $d ]
// shows 5678 34 5432

See also

Release notes

Blog Entries

This function checks for a license.

Created 21st July 2022, last changed 21st July 2022


List.MatchesPrefix - List.Not