Split

The Split tool allows you to divide text or data into multiple parts based on specified delimiters or patterns.

Overview

Split is useful for breaking down large text blocks, separating data fields, or creating multiple outputs from a single input. This tool is commonly used in data processing workflows where you need to parse structured text or divide content for further processing.

Key Features

  • Flexible Delimiters: Split text using various delimiters (commas, newlines, custom patterns)
  • Multiple Output Formats: Generate arrays, separate strings, or structured data
  • Pattern Matching: Use regular expressions for complex splitting logic
  • Batch Processing: Handle multiple inputs simultaneously

Use Cases

  • Data Parsing: Split CSV data into individual fields
  • Text Processing: Break paragraphs into sentences or words
  • List Management: Convert comma-separated values into arrays
  • Content Segmentation: Divide large documents into smaller sections

Configuration

The Split tool can be configured with:
  • Delimiter: The character or pattern to split on
  • Output Format: How the split results should be formatted
  • Limit: Maximum number of splits to perform
  • Trim Whitespace: Remove leading/trailing spaces from results

Example

Input: "apple,banana,cherry,date" Delimiter: , Output: ["apple", "banana", "cherry", "date"] This tool integrates seamlessly with other DNG nodes to create powerful data processing workflows.