---
title: "RegexManager"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/regexmanager/"
product: "Aspose.PDF for Java API Reference"
description: "Provides a wrapper for regular expression operations with configurable timeout settings."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.RegexManager

```
public class RegexManager extends Object
```

Provides a wrapper for regular expression operations with configurable timeout settings.

## Constructors

| Constructor | Description |
| --- | --- |
| [RegexManager](#RegexManager--) |  |

## Methods

| Method | Description |
| --- | --- |
| [getMatchTimeout](#getMatchTimeout--) | Gets or sets the timeout for Regex operations across the library. The default value is 1000 ms. Value: A {@link double} representing the default timeout duration. |
| [setMatchTimeout](#setMatchTimeout-int-) | Gets or sets the timeout for Regex operations across the library. The default value is 1000 ms. Value: |

### RegexManager {#RegexManager--}
```
public RegexManager()
```



### getMatchTimeout {#getMatchTimeout--}
```
public static int getMatchTimeout()
```

Gets or sets the timeout for Regex operations across the library. The default value is 1000 ms. Value: A {@link double} representing the default timeout duration.

**Returns:**
int value

### setMatchTimeout {#setMatchTimeout-int-}
```
public static void setMatchTimeout(int value)
```

Gets or sets the timeout for Regex operations across the library. The default value is 1000 ms. Value:

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | A representing the default timeout duration in Milliseconds. |
