RegexSearch
DataTools
Description
The ultimate search power for professionals! RegexSearch uses regular expressions to find complex patterns in text - email addresses, phone numbers, URLs, date formats, IDs and any other structure. Tedious text searching is a thing of the past!
With capture group support, multiline mode and comprehensive regex options, you extract structured data from unstructured text. No regex knowledge needed - just describe what you are looking for!
Why This Tool Stands Out
- Complex Patterns found effortlessly
- Capture Groups - extract parts
- Emails, URLs, IPs detected automatically
- Results depend on input, configuration and implementation. Verify behavior in your environment; no accuracy, security or performance guarantee is established here.
Perfect for:
Data scientists, security analysts, developers and everyone who needs to extract data from text. Ideal for log analysis, web scraping, data validation, forensics and text mining. Perfect for lead generation, compliance checks, spam filtering and data cleanup!
Workflow support; time savings depend on the task
Instead of going through documents manually, searching for patterns and copying data, RegexSearch automatically extracts all the information you need with surgical precision - thousands of occurrences in seconds!
JSON Parameters
- text REQUIRED (String)The text to search with regex.
- pattern REQUIRED (String)The regular expression (regex pattern) to search for. Example: "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}" for email addresses
- caseSensitive OPTIONAL (Boolean)Whether the search should be case-sensitive. Default: false
- multiLine OPTIONAL (Boolean)Whether multiline mode should be enabled. Default: false
Example Call
{
"tool": "RegexSearch",
"params": {
"text": "Contact: max@example.com, anna@test.org\nPhone: +49 123 456789",
"pattern": "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}",
"caseSensitive": false,
"multiLine": true
}
}
Example Usage
Load the text to search - logs, emails, web pages or documents.
Create a regular expression pattern for the data you want to extract.
Process the matches and capture groups you found.
Return Values
The tool returns an object with the following properties:
- matches (Array)
Array of all matches found, each with value, index and capture groups - matchCount (Integer)
Total number of matches found - groups (Array)
Array of all capture groups per match - pattern (String)
The regex pattern used - found (Boolean)
True if at least one match was found - error (String, optional)
Error message if the search failed (e.g. invalid pattern)
Related DataTools
Ready for More DataTools?
Discover all our data processing tools for advanced text analysis.
Explore All DataTools