RegEx.Release
-------------

Frees memory for a regular expression.

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

MBS( "RegEx.Release"; RegExRef ) 

**MBS**( **"RegEx.Release";** /\* Frees memory for a regular expression. \*/  
**$RegExRef**) /\* The reference number for the regular expression returned from [RegEx.Compile](RegExCompile.md).  
Or a list of reference numbers.e.g. $regex \*/ 

(old name: RegEx.Free)

### Parameters

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

### Result

Returns OK or error.

### Description

Frees memory for a regular expression.  
### Examples

Free regex:

 Set Variable \[ $r ; Value: MBS ("RegEx.Free"; $RegEx ) \]  
### See also

- [RegEx.CaptureCount](RegExCaptureCount.md)
- [RegEx.Compile](RegExCompile.md)
- [RegEx.FindMatches](RegExFindMatches.md)
- [RegEx.NameCount](RegExNameCount.md)
- [RegEx.NamedSubstring](RegExNamedSubstring.md)
- [RegEx.Pattern](RegExPattern.md)
- [RegEx.ReleaseAll](RegExReleaseAll.md)
- [RegEx.Replace](RegExReplace.md)
- [RegEx.Results](RegExResults.md)
- [RegEx.Substring](RegExSubstring.md)

### Release notes

- **Version 13.2**
    - Added [RegEx.Release](https://www.mbsplugins.eu/RegExRelease.shtml) and [RegEx.ReleaseAll](https://www.mbsplugins.eu/RegExReleaseAll.shtml) functions.

### Example Databases

- [RegEx/RegEx Find all matches in text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/RegEx/RegEx%20Find%20all%20matches%20in%20text.shtml#1ScriptAnchor_)
- [RegEx/RegEx](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/RegEx/RegEx.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 13.2pr5](https://www.mbsplugins.de/archive/2023-05-03/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[RegEx.Quote](RegExQuote.md) - [RegEx.ReleaseAll](RegExReleaseAll.md)

[HTML Version](RegExRelease.shtml)