RegEx.Study
-----------

Studies the regular expression for improved execution speed.

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

MBS( "RegEx.Study"; RegExRef ) 

**MBS**( **"RegEx.Study";** /\* Studies the regular expression for improved execution speed. \*/  
**$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 OK or error.

### Description

Studies the regular expression for improved execution speed.  
You can call this if you plan to call [RegEx.Execute](RegExExecute.md) often.  
### Examples

Study regex:

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

- [RegEx.Compile](RegExCompile.md)
- [RegEx.Execute](RegExExecute.md)

### Example Databases

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

This function checks for a license.

Created 26th October 2014 , last changed 25th November 2017

  
[RegEx.StringNumber](RegExStringNumber.md) - [RegEx.Substring](RegExSubstring.md)

[HTML Version](RegExStudy.shtml)