Project: /docs/reference/js/_project.yaml
Book: /docs/reference/_book.yaml
page_type: reference
{% comment %}
DO NOT EDIT THIS FILE!
This is generated by the JS SDK team, and any local changes will be
overwritten. Changes should be made in the source code at
https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# RegexValue class
Represents a regular expression type in Firestore documents.
RegexValue
Signature:
```typescript
export declare class RegexValue
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(pattern, options)](./firestore_lite.regexvalue.md#regexvalueconstructor) | | Constructs a new instance of the RegexValue class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [options](./firestore_lite.regexvalue.md#regexvalueoptions) | | string | |
| [pattern](./firestore_lite.regexvalue.md#regexvaluepattern) | | string | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [isEqual(other)](./firestore_lite.regexvalue.md#regexvalueisequal) | | Returns true if this RegexValue is equal to the provided one. |
## RegexValue.(constructor)
Constructs a new instance of the `RegexValue` class
Signature:
```typescript
constructor(pattern: string, options: string);
```
#### Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| pattern | string | |
| options | string | |
## RegexValue.options
Signature:
```typescript
readonly options: string;
```
## RegexValue.pattern
Signature:
```typescript
readonly pattern: string;
```
## RegexValue.isEqual()
Returns true if this `RegexValue` is equal to the provided one.
Signature:
```typescript
isEqual(other: RegexValue): boolean;
```
#### Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| other | [RegexValue](./firestore_lite.regexvalue.md#regexvalue_class) | The RegexValue to compare against. 'true' if this RegexValue is equal to the provided one. |
Returns:
boolean