Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Text → Extractor
AI-generatedOverview
This node performs text extraction operations within the 'Text' resource, specifically the 'Extractor' operation. It extracts a substring from a given base string, starting from a specified start string and ending at a specified end string. It supports an option to extract either the first or the last match (greedy or non-greedy extraction). This is useful for scenarios where you need to isolate specific parts of text data, such as extracting values between delimiters, parsing logs, or processing structured text data.
Use Case Examples
- Extracting a value between two known markers in a log file.
- Isolating a substring from a larger text block for further processing.
- Extracting content between HTML tags or other delimiters.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Allows defining multiple code variables with names or IDs and their corresponding values, which can be used within the code editor for the selected function. |
| Start String | The string that marks the beginning of the text to extract. |
| End String | The string that marks the end of the text to extract. |
| Base String | The string from which the extraction will be performed. |
| Greedy | A boolean option to determine whether to extract the first match (false) or the last match (true). |
| Text | The text to be evaluated (used in other text operations but available here). |
| Expression | A regular expression to evaluate against the text (used in other text operations but available here). |
Output
JSON
extractedText- The substring extracted from the base string between the start and end strings, based on the greedy option.
Dependencies
- Requires an API key credential for the 'codeKitApi' to make requests to the external service.
Troubleshooting
- If the start or end strings are not found in the base string, the extraction may return empty or unexpected results. Ensure the strings exist in the base string.
- Incorrect use of the greedy option may lead to extracting the wrong match (first vs last). Test with both options to confirm expected behavior.
- If code variables are used, ensure they are correctly defined and referenced to avoid errors.
- API request failures may occur if the API key is invalid or the external service is unreachable.