# Text File Searcher

Search for text patterns in files with advanced options (regex, case-sensitive, whole word, etc.)

> Canonical page: https://elysiatools.com/en/tools/text-file-searcher

- **Category:** Utilities

- **Keywords:** text, search, file, regex, pattern, find, content, file search

## Overview

The Text File Searcher is a powerful utility designed to help you quickly locate specific text patterns, keywords, or complex strings within your local files using advanced filtering options like regex and case sensitivity.

## Inputs

- **File Path** (file)
- **Search Text** (text): Text or pattern to search for
- **Search Type** (select)
- **Case Sensitive** (checkbox)
- **Whole Word Only** (checkbox)
- **Use Regular Expression** (checkbox)
- **Include Line Numbers** (checkbox)
- **Maximum Results** (number): Limit number of results (0 = unlimited)
- **Output Format** (select)

## When to use

- Locating specific error codes or log entries within large text-based files.
- Extracting data patterns using regular expressions for technical analysis.
- Filtering file content to find exact phrases or specific word occurrences.

## How it works

- Upload the file you wish to scan using the file picker.
- Enter your search term and select your preferred search type, such as 'Contains' or 'Exact Match'.
- Toggle advanced settings like 'Case Sensitive', 'Whole Word Only', or 'Use Regular Expression' to refine your results.
- Choose your desired output format and click search to view the results with optional line numbers.

## Use cases

- Debugging software logs by searching for specific timestamp formats or error strings.
- Auditing configuration files to verify specific settings or parameter values.
- Extracting specific data points from structured text reports for further processing.

## Frequently asked questions

### Can I search for multiple patterns at once?

Currently, the tool supports searching for one specific text pattern or regular expression per operation.

### Does this tool support large files?

Yes, you can search through large text files, and you can use the 'Maximum Results' setting to limit the output if necessary.

### What output formats are available?

You can export your search results in Detailed (with context), Simple (lines only), CSV, or JSON formats.

### Is the search case-sensitive?

By default, it is not, but you can enable the 'Case Sensitive' checkbox to ensure the search respects character casing.

### Can I use regex for complex searches?

Yes, simply enable the 'Use Regular Expression' checkbox to perform advanced pattern matching.

## Related tools

- [Text File Replacer](https://elysiatools.com/en/tools/text-file-replacer): Find and replace text in files with support for regex, multiple patterns, and backup creation
- [Batch Audio Rename](https://elysiatools.com/en/tools/audio-batch-rename): Batch rename audio files using patterns, text replacement, numbering, and case conversion. Returns renamed files as a ZIP download.
- [Batch Image Rename](https://elysiatools.com/en/tools/image-batch-rename): Batch rename image files using patterns, text replacement, numbering, and case conversion. Returns renamed files as a ZIP download.
- [JSON File Merger](https://elysiatools.com/en/tools/json-merger): Merge multiple JSON files with various merging strategies (deep merge, overwrite, combine arrays, etc.)
- [Regex Replace Previewer](https://elysiatools.com/en/tools/regex-replace-previewer): Preview regex replacements in real-time with detailed diff highlights and statistics
- [Filter Text Lines](https://elysiatools.com/en/tools/text-line-filter): Quickly return text lines that match a pattern or a regex
- [TXT File Merger](https://elysiatools.com/en/tools/txt-merger): Merge multiple text files with various strategies (concatenate, interleave, etc.)
- [YAML File Merger](https://elysiatools.com/en/tools/yaml-merger): Merge multiple YAML files with various strategies (deep merge, overwrite, combine arrays, etc.)

## 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
- [Chinese-English Mixed Text Samples](https://elysiatools.com/en/samples/text-chinese-english-mixed-samples): Sample text files with mixed Chinese and English content for testing automatic spacing tools
- [Text Case Format Samples](https://elysiatools.com/en/samples/text-case-formats): Examples of different text case formats: camelCase, snake_case, kebab-case, PascalCase, and more

## Related content

- [Text Tools](https://elysiatools.com/en/hubs/text-utility): Explore 33 text tools for utility workflows and compare closely related utilities quickly.
- [Text Case, Encoding, and Normalization Conversion Tools](https://elysiatools.com/en/hubs/text-convert): Compare text case conversion, character-width conversion, encoding conversion, quoted-printable handling, and inline text normalization tools in one hub.
- [Text Analysis, Readability, and Content Inspection Tools](https://elysiatools.com/en/hubs/text-analyze): Compare text statistics, language detection, readability scoring, sentiment analysis, moderation review, and pattern analysis tools in one hub.
- [Text Redaction, Highlighting, and Presentation Formatting Tools](https://elysiatools.com/en/hubs/text-format): Compare tools for masking sensitive text, finding PII, normalizing phone numbers, highlighting phrases, centering text, and formatting diffs in one hub.
