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


Finds list entries which have a given postfix text.

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


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


Returns new list or error.


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


Finds list entries with matching postfixes:

MBS( "List.MatchesPostfix"; "Hello¶auto¶World"; "o" )

Example result:

Reduce file list to PDF files:

MBS( "List.MatchesPostfix"; $List; ".pdf")

Remove DS_Store files from file list:

MBS("List.XOr"; MBS( "List.MatchesPostfix"; $list; ".DS_Store"); $list)

See also

Blog Entries

This function checks for a license.

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

List.MapEntries - List.MatchesPrefix