List.MatchesPostfix
-------------------

Finds list entries which have a given postfix text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [List](component_List.md) | [5.4](newinversion54.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "List.MatchesPostfix"; List; Text { ; NoReturnEnding } ) 

**MBS**( **"List.MatchesPostfix";** /\* Finds list entries which have a given postfix text. \*/  
**$List**; /\* The list of texts to search.e.g. "Hello" \*/   
**$Text**; /\* The text to find.e.g. "Hello" \*/   
**$NoReturnEnding**) /\* Optional; 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.e.g. 1 \*/ 

### 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 postfix text.  
Comparison is case insensitive.  
### Examples

Finds list entries with matching postfixes:

 MBS ( "List.MatchesPostfix"; "Hello¶auto¶World"; "o" )  
<small>  
Example result:   
Hello  
auto</small>Reduce file list to PDF files:

 MBS ( "List.MatchesPostfix"; $List ; ".pdf")  
Remove DS\_Store files from file list:

 MBS ("[List.XOr](ListXOr.md)"; MBS ( "List.MatchesPostfix"; $list ; ".DS\_Store"); $list )  
### See also

- [Files.List](FilesList.md)
- [Files.ListRecursive](FilesListRecursive.md)
- [List.MatchesPrefix](ListMatchesPrefix.md)
- [List.MatchesSubString](ListMatchesSubString.md)
- [List.XOr](ListXOr.md)
- [QuickList.MatchesPostfix](QuickListMatchesPostfix.md)
- [QuickList.MatchesSubString](QuickListMatchesSubString.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.4pr7](https://www.mbsplugins.de/archive/2015-11-21/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[List.MapEntries](ListMapEntries.md) - [List.MatchesPrefix](ListMatchesPrefix.md)

[HTML Version](ListMatchesPostfix.shtml)