# 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/f0c5a28fa05adcda89aebcb449d897245ab21fa4/libs/text-splitters/langchain_text_splitters/character.py#L11)