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.
Check 'Use Regular Expression' to use regex patterns. Check 'Case Sensitive' to match case exactly.
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
Randomize the order of letters in text. Supports space preservation and complete randomization. Perfect for creating scrambled text and educational purposes.
Sort letters within each word alphabetically. Supports ascending and descending order. Preserves word boundaries and spacing. Perfect for word puzzles.
Sort words in text alphabetically, numerically, or by length. Supports ascending and descending order. Perfect for content organization and text analysis tasks.
Sort paragraphs in text alphabetically, numerically, or by length. Supports ascending and descending order. Perfect for content organization.
Sort sentences in text alphabetically, numerically, or by length. Supports ascending and descending order. Perfect for content organization and text analysis.
Sort text lines alphabetically, numerically, or by length. Supports ascending and descending order. Perfect for organizing lists and data processing tasks.
Filter and extract paragraphs from text by pattern or regex. Supports regex patterns, case sensitivity, and paragraph detection. Ideal for content extraction.
Filter and extract sentences from text by pattern or regex. Supports regex patterns, case sensitivity, and sentence detection. Ideal for content extraction.
Filter and extract text lines by pattern or regex. Supports regex patterns, case-sensitive matching, and line-by-line filtering. Perfect for log analysis.
Add symbols around each letter in text automatically. Preserves spacing, punctuation, formatting. Use asterisks, tildes, underscores, or characters for styling.
Insert symbols between each letter in text automatically. Preserves spacing, punctuation, formatting. Use dashes, dots, spaces, custom characters to style text.
Remove suffix from each word in text automatically. Preserves spacing, punctuation, formatting. Useful for removing suffixes like -ed, -ing, -ly from words.
Remove prefix from each word in text automatically. Preserves spacing, punctuation, formatting. Useful for removing prefixes like un-, re- from words.
Add suffix to each word in text automatically. Preserves spacing, punctuation, formatting. Useful for adding suffixes like -ed, -ing, -ly to words in your text.
Add prefix to each word in text automatically. Preserves spacing, punctuation, formatting. Useful for adding prefixes like un-, re-, or custom text to words.
Remove suffix from text lines in three modes: line-by-line, paragraph, or single at end. Useful for cleaning text, removing line numbers, timestamps, markers.
Remove prefix from text lines in three modes: line-by-line, paragraph, or single at start. Useful for cleaning text, removing line numbers, bullet points.
Add suffix to text lines in three modes: line-by-line, paragraph, or single at end. Useful for line numbers, timestamps, markers. Preserves formatting.
Add prefix to text lines in three modes: line-by-line, paragraph, or single at start. Useful for line numbers, bullet points, timestamps. Preserves formatting.
Scan text for homoglyphs (Cyrillic/Greek lookalikes) and full-width characters. Get counts and a report of suspicious characters. Preserves layout. Quick.
Convert fake-looking text back to normal. Fix homoglyphs (Cyrillic/Greek lookalikes) and normalize full-width characters. Preserves whitespace and line breaks.
Generate fake text using homoglyphs (lookalike Unicode). Choose Cyrillic, Greek, or full-width style and set replace rate. Preserves spaces and punctuation.
Introduce random typos by replacing, deleting, duplicating, or swapping characters. Control error rate and max changes, and keep spaces and line breaks intact.
Add random letters to words in text. Choose letter pool, max letters per word, and insert position (before, middle, after). Preserves spaces and punctuation.
Insert random words into your text in seconds. Choose how many words to add and where to insert them (start, end, or between words). Ideal for testing.
Replace words in text with other words automatically. Enter replacement pairs in format old:new, separated by commas. Choose case sensitivity. Easy to use.
Remove sentences containing specified keywords from text automatically. Enter keywords separated by commas. Choose sentence delimiters. Useful for filtering.
Duplicate each sentence in text automatically. Choose punctuation delimiters to identify sentences. Useful for text transformation and emphasis effects.
Remove specified words from text automatically. Enter multiple words separated by commas. Useful for text cleaning and removing stop words. Fast and easy.
Duplicate each word in text automatically. Each word will be repeated once. Useful for text transformation, emphasis effects, and text obfuscation. Fast tool.
Swap adjacent pairs of words in text automatically. Each pair of words will be swapped. Useful for text transformation, word puzzles, and text obfuscation.
Swap the first and last letters of each word in text. Words with less than 2 characters remain unchanged. Fast tool for text obfuscation and word puzzles.
Reverse the order of paragraphs in text. Paragraphs are separated by double line breaks. Fast online tool for text analysis and creating reversed narratives.
Reverse the order of sentences in text. Sentences are identified by common punctuation marks like periods, question marks, and exclamation marks. Fast tool.
Wrap text lines to a specified width by breaking long lines at word boundaries. Preserves word integrity and creates properly formatted text. Fast online tool.
Justify text by adding spaces between words to reach a specified width. Each line is aligned to the target width with evenly distributed spaces. Fast tool.
Remove indentation from text lines instantly. Choose between spaces or tabs, specify the indentation level to remove, and transform your text. Fast tool.
Add or remove indentation from text lines instantly. Choose between spaces or tabs, specify the indent level, and transform your text quickly. Fast online tool.
Center-align text by adding padding to both sides to reach a specified width instantly. Center text with spaces, zeros, dashes. Fast online tool for text.
Align text to the right by adding padding to the left side to reach a specified width instantly. Right-align text with spaces, zeros. Fast online tool.