Categories

Filter Words in Text

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

The pattern to match against (required for most filter types)

Match whole words only

Match case when filtering

Custom separator between words (overrides output format)

Remove duplicate words from results

Sort results alphabetically

Maximum word length (for length filter type)

Maximum number of vowels (for vowel filter type)

Maximum number of consonants (for consonant filter type)

Key Facts

Category
Text Processing
Input Types
textarea, select, text, checkbox
Output Type
text
Sample Coverage
4
API Ready
Yes

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.

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.

Examples

1. Extracting SEO Keywords

Content Marketer
Background
I have a 2,000-word blog post and need to extract all unique words longer than 8 characters to identify potential long-tail keywords.
Problem
Manually scanning the text is inefficient and prone to human error.
How to Use
Paste the article text, select 'Word Length' as the filter type, set the max length, and enable 'Remove Duplicates' and 'Sort Alphabetically'.
Example Config
filterType: length, maxLength: 8, removeDuplicates: true, sortAlphabetically: true, outputFormat: newline
Outcome
A clean, sorted list of all unique long-tail keywords found in the article, ready for SEO analysis.

2. Regex Data Extraction

Data Analyst
Background
I have a raw log file containing various product IDs formatted as 'PROD-12345'.
Problem
I need to extract only the product IDs while ignoring the surrounding descriptive text.
How to Use
Select 'Regular Expression' as the filter type and enter the pattern 'PROD-\d+' to match the specific ID format.
Example Config
filterType: regex, pattern: PROD-\d+, outputFormat: comma
Outcome
A comma-separated list of all product IDs extracted from the log file.

Try with Samples

video, text, regex

Related Hubs

FAQ

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.

API Documentation

Request Endpoint

POST /en/api/tools/text-word-filter

Request Parameters

Parameter Name Type Required Description
textInput textarea Yes -
filterType select Yes -
pattern text No The pattern to match against (required for most filter types)
wordBoundary checkbox No Match whole words only
caseSensitive checkbox No Match case when filtering
outputFormat select Yes -
separator text No Custom separator between words (overrides output format)
removeDuplicates checkbox No Remove duplicate words from results
sortAlphabetically checkbox No Sort results alphabetically
maxLength text No Maximum word length (for length filter type)
maxVowels text No Maximum number of vowels (for vowel filter type)
maxConsonants text No Maximum number of consonants (for consonant filter type)

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-text-word-filter": {
      "name": "text-word-filter",
      "description": "Quickly return words in text that match a pattern or a regex",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=text-word-filter",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]