# Filter Words in Text

Quickly return words in text that match a pattern or a regex

> Canonical page: https://elysiatools.com/en/tools/text-word-filter

- **Category:** Text Processing

- **Keywords:** text, filter, words, pattern, regex, match, search, extract, Text Word Filter

## Overview

The Text Word Filter is a powerful utility designed to extract, isolate, and organize specific words from large blocks of text based on custom patterns, regular expressions, or linguistic criteria.

## Inputs

- **Text Input** (textarea): Enter text to filter words from...
- **Filter Type** (select)
- **Pattern/Text** (text): The pattern to match against (required for most filter types)
- **Word Boundary** (checkbox): Match whole words only
- **Case Sensitive** (checkbox): Match case when filtering
- **Output Format** (select)
- **Custom Separator** (text): Custom separator between words (overrides output format)
- **Remove Duplicates** (checkbox): Remove duplicate words from results
- **Sort Alphabetically** (checkbox): Sort results alphabetically
- **Max Length** (text): Maximum word length (for length filter type)
- **Max Vowels** (text): Maximum number of vowels (for vowel filter type)
- **Max Consonants** (text): Maximum number of consonants (for consonant filter type)

## When to use

- Extracting specific keywords or data points from unstructured text documents.
- Cleaning up word lists by removing duplicates or sorting them alphabetically.
- Analyzing text structure by filtering words based on length, vowel counts, or specific character patterns.

## How it works

- Paste your source text into the input area and select your preferred filter type, such as 'Contains', 'Regex', or 'Word Length'.
- Define your matching criteria in the pattern field and toggle settings like 'Case Sensitive' or 'Word Boundary' to refine the results.
- Choose your desired output format, such as a comma-separated list or a numbered list, to get the final filtered data.

## Use cases

- Data extraction for SEO keyword research from long-form articles.
- Cleaning and normalizing word lists for programming or linguistic analysis.
- Identifying specific linguistic patterns like palindromes or anagrams within a text corpus.

## Frequently asked questions

### Can I use regular expressions to filter words?

Yes, select the 'Regular Expression' filter type and enter your regex pattern in the pattern field.

### Does the tool support case-sensitive filtering?

Yes, you can enable the 'Case Sensitive' checkbox to ensure matches respect character casing.

### How do I remove duplicate words from my results?

Simply check the 'Remove Duplicates' option before processing your text.

### Can I filter words by their length?

Yes, select the 'Word Length' filter type and specify the maximum length in the configuration settings.

### What output formats are available?

You can output results as space-separated, newline-separated, comma-separated, or as a numbered list.

## Related tools

- [Filter Text Paragraphs](https://elysiatools.com/en/tools/text-paragraph-filter): Quickly return all paragraphs that match a pattern or a regex
- [Filter Text Sentences](https://elysiatools.com/en/tools/text-sentence-filter): Quickly return all sentences that match a pattern or a regex
- [Bulk Email Extractor](https://elysiatools.com/en/tools/bulk-email-extractor): Extract all email addresses from input text, articles, web source code, or mixed content. Supports deduplication and export to JSON.
- [Line Number Remover](https://elysiatools.com/en/tools/line-number-remover): Remove line numbers from text or code with intelligent pattern recognition
- [Emoji Extractor](https://elysiatools.com/en/tools/emoji-extractor): Extract all Unicode emoji from text, or optionally remove emojis
- [Chinese Character Extractor (汉字提取器)](https://elysiatools.com/en/tools/chinese-character-extractor): Extract all Chinese characters from text, filtering out punctuation and English letters, numbers, and non-Chinese symbols
- [IP Address Extractor](https://elysiatools.com/en/tools/ip-address-extractor): Extract IPv4 and IPv6 addresses from log files, server logs, network traces, or any text content
- [HTML Tag Stripper](https://elysiatools.com/en/tools/html-tag-stripper): Remove HTML tags and extract clean text content

## Samples

- [Text with Emoji Samples](https://elysiatools.com/en/samples/text-with-emoji-samples): Mixed language text containing various Unicode emojis for testing emoji extraction
- [Regex Replace Samples](https://elysiatools.com/en/samples/regex-replace): Collection of common and useful regex replacement patterns for text transformation and data cleaning
- [Text with Date Samples](https://elysiatools.com/en/samples/text-with-date-samples): Text containing various date formats for testing date extraction and parsing
- [Duplicate Line Samples](https://elysiatools.com/en/samples/text-duplicate-line-samples): Sample files with various types of duplicate lines for testing duplicate removal tools

## Related content

- [Deliberate Text Corruption and Mutation for Testing](https://elysiatools.com/en/hubs/text-corruption-and-mutation-testing): Break clean text on purpose — filter, duplicate, and reverse sentences and words, inject random letters and symbols, shuffle lines and words, and prove every mutation stays controlled for parser stress tests, OCR rehearsal, and language experiments.
