# String Contains

Check if a string contains specified substrings or characters

> Canonical page: https://elysiatools.com/en/tools/string-contains

- **Category:** Text Processing

- **Keywords:** string, contains, search, find, substring, text, string contains

## Overview

The String Contains tool allows you to quickly verify if a specific block of text includes one or more target substrings, helping you filter data and validate content with precision.

## Inputs

- **Text to Search** (textarea): Enter the text to search in...
- **Search Terms** (text): Enter terms separated by commas...
- **Case Sensitive** (checkbox)
- **Match All Terms** (checkbox)

## When to use

- Verifying if specific keywords or error codes exist within large log files.
- Filtering lists of data to identify entries that contain required identifiers.
- Checking text inputs for compliance with specific naming conventions or forbidden terms.

## How it works

- Paste your source text into the primary input field.
- Enter the substrings you are searching for, separated by commas.
- Toggle case sensitivity or the 'Match All' requirement to refine your search criteria.
- Execute the check to instantly see which terms were found within your text.

## Use cases

- Validating log files for specific error messages or status codes.
- Screening user-submitted forms for prohibited words or phrases.
- Quickly locating specific product IDs or serial numbers within a long inventory list.

## Frequently asked questions

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

Yes, simply enter your search terms separated by commas in the search field.

### Does the tool distinguish between uppercase and lowercase letters?

By default, it is case-insensitive, but you can enable the 'Case Sensitive' option to enforce strict matching.

### What does the 'Match All' option do?

When enabled, the tool will only return a positive result if every single term you provided is found within the text.

### Is there a limit to the amount of text I can check?

The tool is designed to handle large blocks of text, though extremely large files may perform better if processed in smaller segments.

### Does this tool modify my original text?

No, this is a read-only utility that only analyzes your input to report the presence of specified substrings.

## Related tools

- [Pangram Checker](https://elysiatools.com/en/tools/pangram-checker): Check if text is a pangram (contains every letter of the alphabet). Reports missing letters, used letters, and unique-letter count.
- [Check If Text Is Fake](https://elysiatools.com/en/tools/text-fake-detector): Quickly check if the given text is forged (contains homoglyphs)
- [Ethereum Address Validator](https://elysiatools.com/en/tools/eth-address-validator): Check if a string is an Ethereum address. Does not validate address checksums.
- [Special Character Validator](https://elysiatools.com/en/tools/special-character-validator): Check if a string contains special characters like !@#$%^&*()_+ and identify which ones are present
- [Markdown List Formatter](https://elysiatools.com/en/tools/markdown-list-formatter): Convert each line of text into Markdown list items or numbered lists
- [Filter Text Lines](https://elysiatools.com/en/tools/text-line-filter): Quickly return text lines that match a pattern or a regex
- [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

## Samples

- [Android String Processing Java Samples](https://elysiatools.com/en/samples/android-string-processing-java): Android Java string processing examples including string split and join, regular expressions, and string replacement
- [Android String Processing Kotlin Samples](https://elysiatools.com/en/samples/android-string-processing-kotlin): Android Kotlin string processing examples including string split and join, regular expressions, and string replacement
- [macOS String Processing Objective-C Samples](https://elysiatools.com/en/samples/macos-string-processing-objectivec): macOS Objective-C string processing examples including NSString, NSMutableString, searching, regex, and encoding
- [macOS String Processing Swift Samples](https://elysiatools.com/en/samples/macos-string-processing-swift): macOS Swift string processing examples including split/join, regular expressions, and string replacement

## Related content

- [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 Tools](https://elysiatools.com/en/hubs/text-utility): Explore 33 text tools for utility workflows and compare closely related utilities quickly.
- [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.
