> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetText Method of the RegExpDictionaryDescription Object

This method sets the regular expression to which the dictionary words must conform.

## Syntax

### C++

```cpp theme={null}
HRESULT SetText( BSTR NewValue );
```

### C\#

```csharp theme={null}
void SetText( string NewValue );
```

### Visual Basic .NET

```vb theme={null}
Sub SetText(NewValue As String)
```

## Parameters

NewValue

\[in] This variable contains the regular expression. For example, the regular expression \[0-9]+ specifies that the dictionary accepts the "words" made up of one or more digits.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[RegExpDictionaryDescription](/fine-reader/engine/api-reference/language-related-objects/regexpdictionarydescription)

[Working with ABBYY FineReader Engine Regular Expressions](/fine-reader/engine/guided-tour/advanced-techniques/working-with-regular-expressions)
