# CharacterTextSplitter

> **Class** in `langchain_text_splitters`

📖 [View in docs](https://reference.langchain.com/python/langchain-text-splitters/character/CharacterTextSplitter)

Splitting text that looks at characters.

## Signature

```python
CharacterTextSplitter(
    self,
    separator: str = '\n\n',
    is_separator_regex: bool = False,
    **kwargs: Any = {},
)
```

## Extends

- `TextSplitter`

## Constructors

```python
__init__(
    self,
    separator: str = '\n\n',
    is_separator_regex: bool = False,
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `separator` | `str` |
| `is_separator_regex` | `bool` |


## Methods

- [`split_text()`](https://reference.langchain.com/python/langchain-text-splitters/character/CharacterTextSplitter/split_text)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/58c4e5bbdd9d18d7fe7ec83b5a05477d06fe2a8e/libs/text-splitters/langchain_text_splitters/character.py#L11)