# RegexParser

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/output_parsers/regex/RegexParser)

Parse the output of an LLM call using a regex.

## Signature

```python
RegexParser()
```

## Extends

- `BaseOutputParser[dict[str, str]]`

## Properties

- `regex`
- `output_keys`
- `default_output_key`

## Methods

- [`is_lc_serializable()`](https://reference.langchain.com/python/langchain-classic/output_parsers/regex/RegexParser/is_lc_serializable)
- [`parse()`](https://reference.langchain.com/python/langchain-classic/output_parsers/regex/RegexParser/parse)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/ee95ad6907f5eab94644183393a20aa2a032bb19/libs/langchain/langchain_classic/output_parsers/regex.py#L9)