FindText
DataTools
Description
Find every needle in the haystack! FindText searches texts for specific strings - whether in logs, documents, code or configuration files. With intelligent options for case sensitivity and exact matching, you find exactly what you are looking for!
Whether you are searching for error messages, finding specific users in logs or locating places in code - FindText delivers precise results with position information. Search gigabyte-sized files in seconds!
Why This Tool Stands Out
- Lightning-Fast Search in huge files
- Exact Positions - line and index
- Case Sensitivity optional
- Count of All Matches available instantly
Perfect for:
System administrators, developers, support teams and QA engineers. Ideal for log analysis, troubleshooting, code reviews, document processing and data validation. Perfect for IT monitoring, helpdesk analysis, security audits and content management!
Workflow support; time savings depend on the task
Instead of opening files manually, searching with Ctrl+F and documenting the results, FindText delivers all occurrences with exact positions - ready for automated processing and analysis!
JSON Parameters
- text REQUIRED (String)The text to search in. Can be multiline.
- searchTerm REQUIRED (String)The string to search for.
- caseSensitive OPTIONAL (Boolean)Whether the search should be case-sensitive. Default: false
- exactMatch OPTIONAL (Boolean)Whether only exact matches (no substrings) should be found. Default: false
Example Call
{
"tool": "FindText",
"params": {
"text": "Error in line 42: Connection failed\nInfo: Process started\nError in line 58: Timeout",
"searchTerm": "Error",
"caseSensitive": false,
"exactMatch": false
}
}
Example Usage
Load the text to search - be it a log, a configuration or a document.
Enter the term you are looking for and choose options such as case sensitivity.
Use the position information (line, column) for targeted further processing.
Return Values
The tool returns an object with the following properties:
- matches (Array)
Array of all matches, each with index, line and column - matchCount (Integer)
Total number of matches found - firstIndex (Integer)
Index of the first match (-1 if not found) - searchTerm (String)
The search term used - found (Boolean)
True if at least one match was found - error (String, optional)
Error message if the search failed
Related DataTools
Ready for More DataTools?
Discover all our data processing tools for efficient work with text, logs and documents.
Explore All DataTools