RegEx.MinimumLength
-------------------

Queries the minimum length of the text to match.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RegEx](component_RegEx.md) | [4.4](newinversion44.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "RegEx.MinimumLength"; RegExRef ) 

**MBS**( **"RegEx.MinimumLength";** /\* Queries the minimum length of the text to match. \*/  
**$RegExRef**) /\* The reference number for the regular expression returned from [RegEx.Compile](RegExCompile.md).e.g. $regex \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| RegExRef | The reference number for the regular expression returned from [RegEx.Compile](RegExCompile.md). | $regex |

### Result

Returns number or error.

### Description

Queries the minimum length of the text to match.  
Returns -1 if not applicable.  
### See also

- [RegEx.Compile](RegExCompile.md)

### Example Databases

- [RegEx/RegEx](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/RegEx/RegEx.shtml#2ScriptAnchor_)

This function is free to use.

Created 26th October 2014 , last changed 26th October 2014

  
[RegEx.MatchList](RegExMatchList.md) - [RegEx.NameCount](RegExNameCount.md)

[HTML Version](RegExMinimumLength.shtml)