List.RemovePrefix
-----------------

Removes a prefix text to each entry in the list.

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

MBS( "List.RemovePrefix"; List; Prefix { ; NoReturnEnding; CaseSensitive } ) 

**MBS**( **"List.RemovePrefix";** /\* Removes a prefix text to each entry in the list. \*/  
**$List**; /\* The list to process.e.g. "Hello¶World" \*/   
**$Prefix**; /\* The text to remove.e.g. "H" \*/   
**$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 \*/   
**$CaseSensitive**) /\* Optional; Whether to match with case sensitive comparison.  
Default is 0 for case insensitive.  
You can pass 1 to have a case sensitive comparison.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| List | The list to process. | "Hello¶World" |  |
| Prefix | The text to remove. | "H" |  |
| 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 |
| CaseSensitive | Whether to match with case sensitive comparison.   Default is 0 for case insensitive.   You can pass 1 to have a case sensitive comparison. | 0 | Optional |

### Result

Returns list or error.

### Description

Removes a prefix text to each entry in the list.  
### Examples

Remove prefix from list:

 MBS ( "List.RemovePrefix"; "testHello¶Other¶testWorld"; "test")  
List files with relative paths:

 MBS ( "List.RemovePrefix"; MBS ( "[Files.ListRecursive](FilesListRecursive.md)"; "/Users/Shared/"); "/Users/Shared/")  
### See also

- [Files.List](FilesList.md)
- [Files.ListRecursive](FilesListRecursive.md)
- [List.Remove](ListRemove.md)
- [List.RemovePostfix](ListRemovePostfix.md)
- [QuickList.RemovePostfix](QuickListRemovePostfix.md)
- [QuickList.RemovePrefix](QuickListRemovePrefix.md)
- [Text.RemovePrefix](TextRemovePrefix.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.1pr5](https://www.mbsplugins.de/archive/2016-03-06/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 4th March 2016 , last changed 27th April 2019

  
[List.RemovePostfix](ListRemovePostfix.md) - [List.RemoveValue](ListRemoveValue.md)

[HTML Version](ListRemovePrefix.shtml)