RegEx.Options
-------------

Queries the options to used when compiling the pattern.

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

MBS( "RegEx.Options"; RegExRef ) 

**MBS**( **"RegEx.Options";** /\* Queries the options to used when compiling the pattern. \*/  
**$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 options to used when compiling the pattern.  
Always returns numeric options value.  
### See also

- [RegEx.Compile](RegExCompile.md)

This function is free to use.

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

  
[RegEx.NamedSubstring](RegExNamedSubstring.md) - [RegEx.Pattern](RegExPattern.md)

[HTML Version](RegExOptions.shtml)