Filter Words in Text by Pattern or Regex
Filter and extract words from text by pattern or regex. Supports regex patterns, case-sensitive matching, and word detection. Perfect for keyword extraction.
Error: Please check your input and try again.
Filtered Words:
About Filter Words in Text
Filter words in text based on a pattern or regular expression. This tool helps you quickly extract words that match specific criteria, whether you're searching for simple text patterns or using advanced regular expressions. Useful for text analysis, keyword extraction, and data processing tasks.
Features
The Filter Words in Text tool provides the following features:
- Word Matching - Match words containing specific text patterns.
- Regular Expression Support - Use powerful regex patterns for complex matching rules.
- Case Sensitivity - Choose whether to match case exactly or ignore case differences.
- Word Boundary Detection - Automatically identifies whole words, preserving word boundaries.
- Easy to Use - Simply enter your text, specify the pattern, and filter with a single click.
- Space-Separated Output - Returns matching words separated by spaces for easy reading.
Examples
-
Simple Text Pattern
Input: The error occurred in the module. Another error was found. Pattern: error Use Regex: No Case Sensitive: No Output: error error
-
Regex Pattern - Starts with Capital
Input: apple Banana cherry Date Pattern: ^[A-Z] Use Regex: Yes Case Sensitive: Yes Output: Banana Date
-
Regex Pattern - Contains Numbers
Input: Version 1.0 has update 2.3.4 Pattern: \d+ Use Regex: Yes Case Sensitive: No Output: 1 2 3 4
Text Tools
Other tools you might like
Replace commas in text with another symbol, keep commas in numbers, and optionally collapse comma clusters.
Remove selected letters from text, optionally match case exactly, and clean repeated spaces afterward.
Convert fancy Unicode text styles into regular Latin text and optionally preserve selected symbols.
Remove quote marks from the beginning and end of individual words, with optional multi-level quote deletion.
Remove outer quote marks from text, optionally unquote line by line, trim whitespace, and strip repeated quote layers.
Remove quote marks from the beginning and end of text lines, clean multiple quote layers, and trim leftover whitespace.
Remove empty lines from text and optionally delete lines that contain only tabs or spaces.
Remove duplicate words from text, keep first copies or delete all repeats, and choose the output word delimiter.
Randomize spaces in text and optionally vary tabs and newlines with configurable minimum and maximum ranges.
Format text with a printf-style template, optionally formatting each line separately and decoding escape sequences.
Highlight whole words and phrases in text with word-boundary matching, optional case sensitivity, and custom colors.
Highlight whole sentences that contain selected patterns or exactly match target sentence text, with custom colors.
Highlight matches for one or more regular expressions with custom default flags and configurable marker colors.
Highlight repeated text patterns and substrings with optional case-sensitive matching and customizable marker colors.
Highlight specific letters or symbols inside text with optional case-sensitive matching and custom marker colors.
Generate glitchy Zalgo text by adding combining marks above, through, and below characters with controllable chaos levels.
Generate k-skip-n-grams from text, choose word or letter mode, control sentence edges, and customize separators or punctuation cleanup.
Generate random text with an exact number of characters from preset or custom character pools, with optional line wrapping.
Generate word or letter n-grams from text, choose the size n, respect sentence endings if needed, and optionally normalize punctuation or case.
Generate random strings from a regexp pattern with support for common classes, groups, alternation, quantifiers, and multiple samples.
Flip text vertically by transposing characters, words, or sentences from each input row with custom output separators.
Normalize blank lines between paragraphs and lines, set custom distances, or glue paragraphs and lines together with custom symbols.
Erase listed or random words from text by replacing their letters with repeated blank symbols while preserving each word width.
Convert aligned plain-text columns back to text, ignore selected columns, and choose custom glue symbols for column gaps and line breaks.
Convert delimited text into aligned columns with custom input and output separators, optional separator alignment, and left, right, or center padding.
Split text into pieces by a separator, a regex, a fixed width, or a number of chunks, then format each chunk with custom wrappers.
Randomly remove characters from text, preserve selected symbols or whitespace, and optionally keep word capitalization stable after deletion.
Remove matching symbols from the left and right sides of words, clean repeated layers, and handle apostrophe or hyphen word parts.
Remove random letters from words, limit the removal to certain positions, and target or ignore specific letters when needed.
Randomize the number of line breaks between text fragments, trim loose line edges, and merge lines with a custom join symbol when needed.
Randomize the order of text paragraphs, move them in groups, trim paragraph edges, and remove duplicates when needed.
Randomize uppercase and lowercase letters in any text to create playful mixed-case output for memes, mockups, and experiments.
Reverse the letters inside every word, keep word order, and control how case, apostrophes, and hyphens are handled.
Test text with a regular expression, validate the whole input or each line separately, and copy the status result.
Normalize uneven line-break runs in text and set a fixed newline count or join all lines into one clean string.
Find the length of text, count spaces, tabs, and newlines, and print one value per line when needed.
Add a left and right symbol around every word in text and copy the wrapped result in one click.
Find letters that appear exactly once in text and copy the unique-character list in one clean result.
Find repeated letters in text, count each duplicate character, and copy the result in one simple list.
Find all words that appear only once in text and copy the unique-word list in one clean output.