Count Number of Lines with Specific Symbol Online
Count lines with a specific symbol for Java, Python, C#, C++, and Go
Count Number of Lines with Specific Symbol
What is Count Number of Lines with Specific Symbol?
This tool counts the number of lines in a given text that contain a specific symbol. It's useful for analyzing text data, log files, or any text where you need to identify lines containing a particular character.
Functions
- Counts lines containing a specific symbol
- Handles various character encodings
- Provides code samples in multiple programming languages
Sample 1
Input:
apple banana cherry
Symbol: "a"
Output: 2
Sample 2
Input:
Hello World !
Symbol: "!"
Output: 1
Sample 3
Input:
1 2 3 4 5
Symbol: "3"
Output: 1