PPipeOrchard
Product

Product features · Escaped field separators

01

Preserve empty fields and reject unknown escapes or a trailing backslash before returning any result.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Escaped field separators

● ● ●PipeOrchard●
A concrete starting point · Escaped field separators ×
def split_fields(text):
    fields, escaped = [""], False
    for char in text:
        if escaped:
            if char not in "|\\": raise ValueError("unknown escape")
            fields[-1] += char
            escaped = False
        elif char == "\\": escaped = True
        elif char == "|": fields.append("")
        else: fields[-1] += char
    if escaped: raise ValueError("trailing escape")
    return fields
✳Split pipe-delimited fields with backslash escapes for pipes and backslashes.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗